Oracle Cloud Infrastructure v3.9.0 published on Wednesday, Sep 24, 2025 by Pulumi
oci.Jms.getFleetErrors
This data source provides the list of Fleet Errors in Oracle Cloud Infrastructure Jms service.
Returns a list of fleet errors that describe all detected errors.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testFleetErrors = oci.Jms.getFleetErrors({
compartmentId: compartmentId,
compartmentIdInSubtree: fleetErrorCompartmentIdInSubtree,
fleetId: testFleet.id,
timeFirstSeenGreaterThanOrEqualTo: fleetErrorTimeFirstSeenGreaterThanOrEqualTo,
timeFirstSeenLessThanOrEqualTo: fleetErrorTimeFirstSeenLessThanOrEqualTo,
timeLastSeenGreaterThanOrEqualTo: fleetErrorTimeLastSeenGreaterThanOrEqualTo,
timeLastSeenLessThanOrEqualTo: fleetErrorTimeLastSeenLessThanOrEqualTo,
});
import pulumi
import pulumi_oci as oci
test_fleet_errors = oci.Jms.get_fleet_errors(compartment_id=compartment_id,
compartment_id_in_subtree=fleet_error_compartment_id_in_subtree,
fleet_id=test_fleet["id"],
time_first_seen_greater_than_or_equal_to=fleet_error_time_first_seen_greater_than_or_equal_to,
time_first_seen_less_than_or_equal_to=fleet_error_time_first_seen_less_than_or_equal_to,
time_last_seen_greater_than_or_equal_to=fleet_error_time_last_seen_greater_than_or_equal_to,
time_last_seen_less_than_or_equal_to=fleet_error_time_last_seen_less_than_or_equal_to)
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v3/go/oci/jms"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := jms.GetFleetErrors(ctx, &jms.GetFleetErrorsArgs{
CompartmentId: pulumi.StringRef(compartmentId),
CompartmentIdInSubtree: pulumi.BoolRef(fleetErrorCompartmentIdInSubtree),
FleetId: pulumi.StringRef(testFleet.Id),
TimeFirstSeenGreaterThanOrEqualTo: pulumi.StringRef(fleetErrorTimeFirstSeenGreaterThanOrEqualTo),
TimeFirstSeenLessThanOrEqualTo: pulumi.StringRef(fleetErrorTimeFirstSeenLessThanOrEqualTo),
TimeLastSeenGreaterThanOrEqualTo: pulumi.StringRef(fleetErrorTimeLastSeenGreaterThanOrEqualTo),
TimeLastSeenLessThanOrEqualTo: pulumi.StringRef(fleetErrorTimeLastSeenLessThanOrEqualTo),
}, 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 testFleetErrors = Oci.Jms.GetFleetErrors.Invoke(new()
{
CompartmentId = compartmentId,
CompartmentIdInSubtree = fleetErrorCompartmentIdInSubtree,
FleetId = testFleet.Id,
TimeFirstSeenGreaterThanOrEqualTo = fleetErrorTimeFirstSeenGreaterThanOrEqualTo,
TimeFirstSeenLessThanOrEqualTo = fleetErrorTimeFirstSeenLessThanOrEqualTo,
TimeLastSeenGreaterThanOrEqualTo = fleetErrorTimeLastSeenGreaterThanOrEqualTo,
TimeLastSeenLessThanOrEqualTo = fleetErrorTimeLastSeenLessThanOrEqualTo,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.Jms.JmsFunctions;
import com.pulumi.oci.Jms.inputs.GetFleetErrorsArgs;
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 testFleetErrors = JmsFunctions.getFleetErrors(GetFleetErrorsArgs.builder()
.compartmentId(compartmentId)
.compartmentIdInSubtree(fleetErrorCompartmentIdInSubtree)
.fleetId(testFleet.id())
.timeFirstSeenGreaterThanOrEqualTo(fleetErrorTimeFirstSeenGreaterThanOrEqualTo)
.timeFirstSeenLessThanOrEqualTo(fleetErrorTimeFirstSeenLessThanOrEqualTo)
.timeLastSeenGreaterThanOrEqualTo(fleetErrorTimeLastSeenGreaterThanOrEqualTo)
.timeLastSeenLessThanOrEqualTo(fleetErrorTimeLastSeenLessThanOrEqualTo)
.build());
}
}
variables:
testFleetErrors:
fn::invoke:
function: oci:Jms:getFleetErrors
arguments:
compartmentId: ${compartmentId}
compartmentIdInSubtree: ${fleetErrorCompartmentIdInSubtree}
fleetId: ${testFleet.id}
timeFirstSeenGreaterThanOrEqualTo: ${fleetErrorTimeFirstSeenGreaterThanOrEqualTo}
timeFirstSeenLessThanOrEqualTo: ${fleetErrorTimeFirstSeenLessThanOrEqualTo}
timeLastSeenGreaterThanOrEqualTo: ${fleetErrorTimeLastSeenGreaterThanOrEqualTo}
timeLastSeenLessThanOrEqualTo: ${fleetErrorTimeLastSeenLessThanOrEqualTo}
Using getFleetErrors
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 getFleetErrors(args: GetFleetErrorsArgs, opts?: InvokeOptions): Promise<GetFleetErrorsResult>
function getFleetErrorsOutput(args: GetFleetErrorsOutputArgs, opts?: InvokeOptions): Output<GetFleetErrorsResult>def get_fleet_errors(compartment_id: Optional[str] = None,
compartment_id_in_subtree: Optional[bool] = None,
filters: Optional[Sequence[GetFleetErrorsFilter]] = None,
fleet_id: Optional[str] = None,
time_first_seen_greater_than_or_equal_to: Optional[str] = None,
time_first_seen_less_than_or_equal_to: Optional[str] = None,
time_last_seen_greater_than_or_equal_to: Optional[str] = None,
time_last_seen_less_than_or_equal_to: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetFleetErrorsResult
def get_fleet_errors_output(compartment_id: Optional[pulumi.Input[str]] = None,
compartment_id_in_subtree: Optional[pulumi.Input[bool]] = None,
filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetFleetErrorsFilterArgs]]]] = None,
fleet_id: Optional[pulumi.Input[str]] = None,
time_first_seen_greater_than_or_equal_to: Optional[pulumi.Input[str]] = None,
time_first_seen_less_than_or_equal_to: Optional[pulumi.Input[str]] = None,
time_last_seen_greater_than_or_equal_to: Optional[pulumi.Input[str]] = None,
time_last_seen_less_than_or_equal_to: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetFleetErrorsResult]func GetFleetErrors(ctx *Context, args *GetFleetErrorsArgs, opts ...InvokeOption) (*GetFleetErrorsResult, error)
func GetFleetErrorsOutput(ctx *Context, args *GetFleetErrorsOutputArgs, opts ...InvokeOption) GetFleetErrorsResultOutput> Note: This function is named GetFleetErrors in the Go SDK.
public static class GetFleetErrors
{
public static Task<GetFleetErrorsResult> InvokeAsync(GetFleetErrorsArgs args, InvokeOptions? opts = null)
public static Output<GetFleetErrorsResult> Invoke(GetFleetErrorsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetFleetErrorsResult> getFleetErrors(GetFleetErrorsArgs args, InvokeOptions options)
public static Output<GetFleetErrorsResult> getFleetErrors(GetFleetErrorsArgs args, InvokeOptions options)
fn::invoke:
function: oci:Jms/getFleetErrors:getFleetErrors
arguments:
# arguments dictionaryThe following arguments are supported:
- Compartment
Id string - The OCID of the compartment in which to list resources.
- Compartment
Id boolIn Subtree - Flag to determine whether the info should be gathered only in the compartment or in the compartment and its subcompartments.
- Filters
List<Get
Fleet Errors Filter> - Fleet
Id string - The ID of the Fleet.
- Time
First stringSeen Greater Than Or Equal To - If specified, only errors with a first seen time later than this parameter will be included in the search (formatted according to RFC3339).
- Time
First stringSeen Less Than Or Equal To - If specified, only errors with a first seen time earlier than this parameter will be included in the search (formatted according to RFC3339).
- Time
Last stringSeen Greater Than Or Equal To - If specified, only errors with a last seen time later than this parameter will be included in the search (formatted according to RFC3339).
- Time
Last stringSeen Less Than Or Equal To - If specified, only errors with a last seen time earlier than this parameter will be included in the search (formatted according to RFC3339).
- Compartment
Id string - The OCID of the compartment in which to list resources.
- Compartment
Id boolIn Subtree - Flag to determine whether the info should be gathered only in the compartment or in the compartment and its subcompartments.
- Filters
[]Get
Fleet Errors Filter - Fleet
Id string - The ID of the Fleet.
- Time
First stringSeen Greater Than Or Equal To - If specified, only errors with a first seen time later than this parameter will be included in the search (formatted according to RFC3339).
- Time
First stringSeen Less Than Or Equal To - If specified, only errors with a first seen time earlier than this parameter will be included in the search (formatted according to RFC3339).
- Time
Last stringSeen Greater Than Or Equal To - If specified, only errors with a last seen time later than this parameter will be included in the search (formatted according to RFC3339).
- Time
Last stringSeen Less Than Or Equal To - If specified, only errors with a last seen time earlier than this parameter will be included in the search (formatted according to RFC3339).
- compartment
Id String - The OCID of the compartment in which to list resources.
- compartment
Id BooleanIn Subtree - Flag to determine whether the info should be gathered only in the compartment or in the compartment and its subcompartments.
- filters
List<Get
Fleet Errors Filter> - fleet
Id String - The ID of the Fleet.
- time
First StringSeen Greater Than Or Equal To - If specified, only errors with a first seen time later than this parameter will be included in the search (formatted according to RFC3339).
- time
First StringSeen Less Than Or Equal To - If specified, only errors with a first seen time earlier than this parameter will be included in the search (formatted according to RFC3339).
- time
Last StringSeen Greater Than Or Equal To - If specified, only errors with a last seen time later than this parameter will be included in the search (formatted according to RFC3339).
- time
Last StringSeen Less Than Or Equal To - If specified, only errors with a last seen time earlier than this parameter will be included in the search (formatted according to RFC3339).
- compartment
Id string - The OCID of the compartment in which to list resources.
- compartment
Id booleanIn Subtree - Flag to determine whether the info should be gathered only in the compartment or in the compartment and its subcompartments.
- filters
Get
Fleet Errors Filter[] - fleet
Id string - The ID of the Fleet.
- time
First stringSeen Greater Than Or Equal To - If specified, only errors with a first seen time later than this parameter will be included in the search (formatted according to RFC3339).
- time
First stringSeen Less Than Or Equal To - If specified, only errors with a first seen time earlier than this parameter will be included in the search (formatted according to RFC3339).
- time
Last stringSeen Greater Than Or Equal To - If specified, only errors with a last seen time later than this parameter will be included in the search (formatted according to RFC3339).
- time
Last stringSeen Less Than Or Equal To - If specified, only errors with a last seen time earlier than this parameter will be included in the search (formatted according to RFC3339).
- compartment_
id str - The OCID of the compartment in which to list resources.
- compartment_
id_ boolin_ subtree - Flag to determine whether the info should be gathered only in the compartment or in the compartment and its subcompartments.
- filters
Sequence[Get
Fleet Errors Filter] - fleet_
id str - The ID of the Fleet.
- time_
first_ strseen_ greater_ than_ or_ equal_ to - If specified, only errors with a first seen time later than this parameter will be included in the search (formatted according to RFC3339).
- time_
first_ strseen_ less_ than_ or_ equal_ to - If specified, only errors with a first seen time earlier than this parameter will be included in the search (formatted according to RFC3339).
- time_
last_ strseen_ greater_ than_ or_ equal_ to - If specified, only errors with a last seen time later than this parameter will be included in the search (formatted according to RFC3339).
- time_
last_ strseen_ less_ than_ or_ equal_ to - If specified, only errors with a last seen time earlier than this parameter will be included in the search (formatted according to RFC3339).
- compartment
Id String - The OCID of the compartment in which to list resources.
- compartment
Id BooleanIn Subtree - Flag to determine whether the info should be gathered only in the compartment or in the compartment and its subcompartments.
- filters List<Property Map>
- fleet
Id String - The ID of the Fleet.
- time
First StringSeen Greater Than Or Equal To - If specified, only errors with a first seen time later than this parameter will be included in the search (formatted according to RFC3339).
- time
First StringSeen Less Than Or Equal To - If specified, only errors with a first seen time earlier than this parameter will be included in the search (formatted according to RFC3339).
- time
Last StringSeen Greater Than Or Equal To - If specified, only errors with a last seen time later than this parameter will be included in the search (formatted according to RFC3339).
- time
Last StringSeen Less Than Or Equal To - If specified, only errors with a last seen time earlier than this parameter will be included in the search (formatted according to RFC3339).
getFleetErrors Result
The following output properties are available:
- Fleet
Error List<GetCollections Fleet Errors Fleet Error Collection> - The list of fleet_error_collection.
- Id string
- The provider-assigned unique ID for this managed resource.
- Compartment
Id string - The compartment OCID of the Fleet.
- Compartment
Id boolIn Subtree - Filters
List<Get
Fleet Errors Filter> - Fleet
Id string - The OCID of the Fleet.
- Time
First stringSeen Greater Than Or Equal To - Time
First stringSeen Less Than Or Equal To - Time
Last stringSeen Greater Than Or Equal To - Time
Last stringSeen Less Than Or Equal To
- Fleet
Error []GetCollections Fleet Errors Fleet Error Collection - The list of fleet_error_collection.
- Id string
- The provider-assigned unique ID for this managed resource.
- Compartment
Id string - The compartment OCID of the Fleet.
- Compartment
Id boolIn Subtree - Filters
[]Get
Fleet Errors Filter - Fleet
Id string - The OCID of the Fleet.
- Time
First stringSeen Greater Than Or Equal To - Time
First stringSeen Less Than Or Equal To - Time
Last stringSeen Greater Than Or Equal To - Time
Last stringSeen Less Than Or Equal To
- fleet
Error List<GetCollections Fleet Errors Fleet Error Collection> - The list of fleet_error_collection.
- id String
- The provider-assigned unique ID for this managed resource.
- compartment
Id String - The compartment OCID of the Fleet.
- compartment
Id BooleanIn Subtree - filters
List<Get
Fleet Errors Filter> - fleet
Id String - The OCID of the Fleet.
- time
First StringSeen Greater Than Or Equal To - time
First StringSeen Less Than Or Equal To - time
Last StringSeen Greater Than Or Equal To - time
Last StringSeen Less Than Or Equal To
- fleet
Error GetCollections Fleet Errors Fleet Error Collection[] - The list of fleet_error_collection.
- id string
- The provider-assigned unique ID for this managed resource.
- compartment
Id string - The compartment OCID of the Fleet.
- compartment
Id booleanIn Subtree - filters
Get
Fleet Errors Filter[] - fleet
Id string - The OCID of the Fleet.
- time
First stringSeen Greater Than Or Equal To - time
First stringSeen Less Than Or Equal To - time
Last stringSeen Greater Than Or Equal To - time
Last stringSeen Less Than Or Equal To
- fleet_
error_ Sequence[Getcollections Fleet Errors Fleet Error Collection] - The list of fleet_error_collection.
- id str
- The provider-assigned unique ID for this managed resource.
- compartment_
id str - The compartment OCID of the Fleet.
- compartment_
id_ boolin_ subtree - filters
Sequence[Get
Fleet Errors Filter] - fleet_
id str - The OCID of the Fleet.
- time_
first_ strseen_ greater_ than_ or_ equal_ to - time_
first_ strseen_ less_ than_ or_ equal_ to - time_
last_ strseen_ greater_ than_ or_ equal_ to - time_
last_ strseen_ less_ than_ or_ equal_ to
- fleet
Error List<Property Map>Collections - The list of fleet_error_collection.
- id String
- The provider-assigned unique ID for this managed resource.
- compartment
Id String - The compartment OCID of the Fleet.
- compartment
Id BooleanIn Subtree - filters List<Property Map>
- fleet
Id String - The OCID of the Fleet.
- time
First StringSeen Greater Than Or Equal To - time
First StringSeen Less Than Or Equal To - time
Last StringSeen Greater Than Or Equal To - time
Last StringSeen Less Than Or Equal To
Supporting Types
GetFleetErrorsFilter
GetFleetErrorsFleetErrorCollection
- Items
List<Get
Fleet Errors Fleet Error Collection Item> - A list of FleetErrorSummary.
- Items
[]Get
Fleet Errors Fleet Error Collection Item - A list of FleetErrorSummary.
- items
List<Get
Fleet Errors Fleet Error Collection Item> - A list of FleetErrorSummary.
- items
Get
Fleet Errors Fleet Error Collection Item[] - A list of FleetErrorSummary.
- items
Sequence[Get
Fleet Errors Fleet Error Collection Item] - A list of FleetErrorSummary.
- items List<Property Map>
- A list of FleetErrorSummary.
GetFleetErrorsFleetErrorCollectionItem
- Compartment
Id string - The OCID of the compartment in which to list resources.
- Errors
List<Get
Fleet Errors Fleet Error Collection Item Error> - List of fleet error details.
- Fleet
Id string - The ID of the Fleet.
- Fleet
Name string - The display name of the Fleet.
- Time
First stringSeen - The timestamp of the first time an error was detected.
- Time
Last stringSeen - The timestamp of the last time an error was detected.
- Compartment
Id string - The OCID of the compartment in which to list resources.
- Errors
[]Get
Fleet Errors Fleet Error Collection Item Error - List of fleet error details.
- Fleet
Id string - The ID of the Fleet.
- Fleet
Name string - The display name of the Fleet.
- Time
First stringSeen - The timestamp of the first time an error was detected.
- Time
Last stringSeen - The timestamp of the last time an error was detected.
- compartment
Id String - The OCID of the compartment in which to list resources.
- errors
List<Get
Fleet Errors Fleet Error Collection Item Error> - List of fleet error details.
- fleet
Id String - The ID of the Fleet.
- fleet
Name String - The display name of the Fleet.
- time
First StringSeen - The timestamp of the first time an error was detected.
- time
Last StringSeen - The timestamp of the last time an error was detected.
- compartment
Id string - The OCID of the compartment in which to list resources.
- errors
Get
Fleet Errors Fleet Error Collection Item Error[] - List of fleet error details.
- fleet
Id string - The ID of the Fleet.
- fleet
Name string - The display name of the Fleet.
- time
First stringSeen - The timestamp of the first time an error was detected.
- time
Last stringSeen - The timestamp of the last time an error was detected.
- compartment_
id str - The OCID of the compartment in which to list resources.
- errors
Sequence[Get
Fleet Errors Fleet Error Collection Item Error] - List of fleet error details.
- fleet_
id str - The ID of the Fleet.
- fleet_
name str - The display name of the Fleet.
- time_
first_ strseen - The timestamp of the first time an error was detected.
- time_
last_ strseen - The timestamp of the last time an error was detected.
- compartment
Id String - The OCID of the compartment in which to list resources.
- errors List<Property Map>
- List of fleet error details.
- fleet
Id String - The ID of the Fleet.
- fleet
Name String - The display name of the Fleet.
- time
First StringSeen - The timestamp of the first time an error was detected.
- time
Last StringSeen - The timestamp of the last time an error was detected.
GetFleetErrorsFleetErrorCollectionItemError
- Details string
- Optional string containing additional details.
- Reason string
- The fleet error reason.
- Time
Last stringSeen - The timestamp of the last time an error was detected.
- Details string
- Optional string containing additional details.
- Reason string
- The fleet error reason.
- Time
Last stringSeen - The timestamp of the last time an error was detected.
- details String
- Optional string containing additional details.
- reason String
- The fleet error reason.
- time
Last StringSeen - The timestamp of the last time an error was detected.
- details string
- Optional string containing additional details.
- reason string
- The fleet error reason.
- time
Last stringSeen - The timestamp of the last time an error was detected.
- details str
- Optional string containing additional details.
- reason str
- The fleet error reason.
- time_
last_ strseen - The timestamp of the last time an error was detected.
- details String
- Optional string containing additional details.
- reason String
- The fleet error reason.
- time
Last StringSeen - The timestamp of the last time an error was detected.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ociTerraform Provider.
