Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.Jms.getFleetErrors
Explore with Pulumi AI
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/v2/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:
- CompartmentId string
- The OCID of the compartment in which to list resources.
- CompartmentId boolIn Subtree 
- Flag to determine whether the info should be gathered only in the compartment or in the compartment and its subcompartments.
- Filters
List<GetFleet Errors Filter> 
- FleetId string
- The ID of the Fleet.
- TimeFirst 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).
- TimeFirst 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).
- TimeLast 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).
- TimeLast 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).
- CompartmentId string
- The OCID of the compartment in which to list resources.
- CompartmentId boolIn Subtree 
- Flag to determine whether the info should be gathered only in the compartment or in the compartment and its subcompartments.
- Filters
[]GetFleet Errors Filter 
- FleetId string
- The ID of the Fleet.
- TimeFirst 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).
- TimeFirst 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).
- TimeLast 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).
- TimeLast 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).
- compartmentId String
- The OCID of the compartment in which to list resources.
- compartmentId BooleanIn Subtree 
- Flag to determine whether the info should be gathered only in the compartment or in the compartment and its subcompartments.
- filters
List<GetFleet Errors Filter> 
- fleetId String
- The ID of the Fleet.
- timeFirst 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).
- timeFirst 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).
- timeLast 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).
- timeLast 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).
- compartmentId string
- The OCID of the compartment in which to list resources.
- compartmentId booleanIn Subtree 
- Flag to determine whether the info should be gathered only in the compartment or in the compartment and its subcompartments.
- filters
GetFleet Errors Filter[] 
- fleetId string
- The ID of the Fleet.
- timeFirst 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).
- timeFirst 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).
- timeLast 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).
- timeLast 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[GetFleet 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).
- compartmentId String
- The OCID of the compartment in which to list resources.
- compartmentId 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>
- fleetId String
- The ID of the Fleet.
- timeFirst 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).
- timeFirst 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).
- timeLast 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).
- timeLast 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:
- FleetError List<GetCollections Fleet Errors Fleet Error Collection> 
- The list of fleet_error_collection.
- Id string
- The provider-assigned unique ID for this managed resource.
- CompartmentId string
- The compartment OCID of the Fleet.
- CompartmentId boolIn Subtree 
- Filters
List<GetFleet Errors Filter> 
- FleetId string
- The OCID of the Fleet.
- TimeFirst stringSeen Greater Than Or Equal To 
- TimeFirst stringSeen Less Than Or Equal To 
- TimeLast stringSeen Greater Than Or Equal To 
- TimeLast stringSeen Less Than Or Equal To 
- FleetError []GetCollections Fleet Errors Fleet Error Collection 
- The list of fleet_error_collection.
- Id string
- The provider-assigned unique ID for this managed resource.
- CompartmentId string
- The compartment OCID of the Fleet.
- CompartmentId boolIn Subtree 
- Filters
[]GetFleet Errors Filter 
- FleetId string
- The OCID of the Fleet.
- TimeFirst stringSeen Greater Than Or Equal To 
- TimeFirst stringSeen Less Than Or Equal To 
- TimeLast stringSeen Greater Than Or Equal To 
- TimeLast stringSeen Less Than Or Equal To 
- fleetError List<GetCollections Fleet Errors Fleet Error Collection> 
- The list of fleet_error_collection.
- id String
- The provider-assigned unique ID for this managed resource.
- compartmentId String
- The compartment OCID of the Fleet.
- compartmentId BooleanIn Subtree 
- filters
List<GetFleet Errors Filter> 
- fleetId String
- The OCID of the Fleet.
- timeFirst StringSeen Greater Than Or Equal To 
- timeFirst StringSeen Less Than Or Equal To 
- timeLast StringSeen Greater Than Or Equal To 
- timeLast StringSeen Less Than Or Equal To 
- fleetError GetCollections Fleet Errors Fleet Error Collection[] 
- The list of fleet_error_collection.
- id string
- The provider-assigned unique ID for this managed resource.
- compartmentId string
- The compartment OCID of the Fleet.
- compartmentId booleanIn Subtree 
- filters
GetFleet Errors Filter[] 
- fleetId string
- The OCID of the Fleet.
- timeFirst stringSeen Greater Than Or Equal To 
- timeFirst stringSeen Less Than Or Equal To 
- timeLast stringSeen Greater Than Or Equal To 
- timeLast 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[GetFleet 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 
- fleetError List<Property Map>Collections 
- The list of fleet_error_collection.
- id String
- The provider-assigned unique ID for this managed resource.
- compartmentId String
- The compartment OCID of the Fleet.
- compartmentId BooleanIn Subtree 
- filters List<Property Map>
- fleetId String
- The OCID of the Fleet.
- timeFirst StringSeen Greater Than Or Equal To 
- timeFirst StringSeen Less Than Or Equal To 
- timeLast StringSeen Greater Than Or Equal To 
- timeLast StringSeen Less Than Or Equal To 
Supporting Types
GetFleetErrorsFilter   
GetFleetErrorsFleetErrorCollection     
- Items
List<GetFleet Errors Fleet Error Collection Item> 
- A list of FleetErrorSummary.
- Items
[]GetFleet Errors Fleet Error Collection Item 
- A list of FleetErrorSummary.
- items
List<GetFleet Errors Fleet Error Collection Item> 
- A list of FleetErrorSummary.
- items
GetFleet Errors Fleet Error Collection Item[] 
- A list of FleetErrorSummary.
- items
Sequence[GetFleet Errors Fleet Error Collection Item] 
- A list of FleetErrorSummary.
- items List<Property Map>
- A list of FleetErrorSummary.
GetFleetErrorsFleetErrorCollectionItem      
- CompartmentId string
- The OCID of the compartment in which to list resources.
- Errors
List<GetFleet Errors Fleet Error Collection Item Error> 
- List of fleet error details.
- FleetId string
- The ID of the Fleet.
- FleetName string
- The display name of the Fleet.
- TimeFirst stringSeen 
- The timestamp of the first time an error was detected.
- TimeLast stringSeen 
- The timestamp of the last time an error was detected.
- CompartmentId string
- The OCID of the compartment in which to list resources.
- Errors
[]GetFleet Errors Fleet Error Collection Item Error 
- List of fleet error details.
- FleetId string
- The ID of the Fleet.
- FleetName string
- The display name of the Fleet.
- TimeFirst stringSeen 
- The timestamp of the first time an error was detected.
- TimeLast stringSeen 
- The timestamp of the last time an error was detected.
- compartmentId String
- The OCID of the compartment in which to list resources.
- errors
List<GetFleet Errors Fleet Error Collection Item Error> 
- List of fleet error details.
- fleetId String
- The ID of the Fleet.
- fleetName String
- The display name of the Fleet.
- timeFirst StringSeen 
- The timestamp of the first time an error was detected.
- timeLast StringSeen 
- The timestamp of the last time an error was detected.
- compartmentId string
- The OCID of the compartment in which to list resources.
- errors
GetFleet Errors Fleet Error Collection Item Error[] 
- List of fleet error details.
- fleetId string
- The ID of the Fleet.
- fleetName string
- The display name of the Fleet.
- timeFirst stringSeen 
- The timestamp of the first time an error was detected.
- timeLast 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[GetFleet 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.
- compartmentId String
- The OCID of the compartment in which to list resources.
- errors List<Property Map>
- List of fleet error details.
- fleetId String
- The ID of the Fleet.
- fleetName String
- The display name of the Fleet.
- timeFirst StringSeen 
- The timestamp of the first time an error was detected.
- timeLast 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.
- TimeLast stringSeen 
- The timestamp of the last time an error was detected.
- Details string
- Optional string containing additional details.
- Reason string
- The fleet error reason.
- TimeLast stringSeen 
- The timestamp of the last time an error was detected.
- details String
- Optional string containing additional details.
- reason String
- The fleet error reason.
- timeLast StringSeen 
- The timestamp of the last time an error was detected.
- details string
- Optional string containing additional details.
- reason string
- The fleet error reason.
- timeLast 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.
- timeLast 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.