1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Jms
  5. getFleetErrors
Oracle Cloud Infrastructure v2.31.0 published on Thursday, Apr 17, 2025 by Pulumi

oci.Jms.getFleetErrors

Explore with Pulumi AI

Oracle Cloud Infrastructure v2.31.0 published on Thursday, Apr 17, 2025 by Pulumi

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,
});
Copy
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)
Copy
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
	})
}
Copy
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,
    });

});
Copy
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());

    }
}
Copy
variables:
  testFleetErrors:
    fn::invoke:
      function: oci:Jms:getFleetErrors
      arguments:
        compartmentId: ${compartmentId}
        compartmentIdInSubtree: ${fleetErrorCompartmentIdInSubtree}
        fleetId: ${testFleet.id}
        timeFirstSeenGreaterThanOrEqualTo: ${fleetErrorTimeFirstSeenGreaterThanOrEqualTo}
        timeFirstSeenLessThanOrEqualTo: ${fleetErrorTimeFirstSeenLessThanOrEqualTo}
        timeLastSeenGreaterThanOrEqualTo: ${fleetErrorTimeLastSeenGreaterThanOrEqualTo}
        timeLastSeenLessThanOrEqualTo: ${fleetErrorTimeLastSeenLessThanOrEqualTo}
Copy

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>
Copy
def get_fleet_errors(compartment_id: Optional[str] = None,
                     compartment_id_in_subtree: Optional[bool] = None,
                     filters: Optional[Sequence[_jms.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[_jms.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]
Copy
func GetFleetErrors(ctx *Context, args *GetFleetErrorsArgs, opts ...InvokeOption) (*GetFleetErrorsResult, error)
func GetFleetErrorsOutput(ctx *Context, args *GetFleetErrorsOutputArgs, opts ...InvokeOption) GetFleetErrorsResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetFleetErrorsResult> getFleetErrors(GetFleetErrorsArgs args, InvokeOptions options)
public static Output<GetFleetErrorsResult> getFleetErrors(GetFleetErrorsArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: oci:Jms/getFleetErrors:getFleetErrors
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

CompartmentId string
The OCID of the compartment in which to list resources.
CompartmentIdInSubtree bool
Flag to determine whether the info should be gathered only in the compartment or in the compartment and its subcompartments.
Filters Changes to this property will trigger replacement. List<GetFleetErrorsFilter>
FleetId string
The ID of the Fleet.
TimeFirstSeenGreaterThanOrEqualTo string
If specified, only errors with a first seen time later than this parameter will be included in the search (formatted according to RFC3339).
TimeFirstSeenLessThanOrEqualTo string
If specified, only errors with a first seen time earlier than this parameter will be included in the search (formatted according to RFC3339).
TimeLastSeenGreaterThanOrEqualTo string
If specified, only errors with a last seen time later than this parameter will be included in the search (formatted according to RFC3339).
TimeLastSeenLessThanOrEqualTo string
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.
CompartmentIdInSubtree bool
Flag to determine whether the info should be gathered only in the compartment or in the compartment and its subcompartments.
Filters Changes to this property will trigger replacement. []GetFleetErrorsFilter
FleetId string
The ID of the Fleet.
TimeFirstSeenGreaterThanOrEqualTo string
If specified, only errors with a first seen time later than this parameter will be included in the search (formatted according to RFC3339).
TimeFirstSeenLessThanOrEqualTo string
If specified, only errors with a first seen time earlier than this parameter will be included in the search (formatted according to RFC3339).
TimeLastSeenGreaterThanOrEqualTo string
If specified, only errors with a last seen time later than this parameter will be included in the search (formatted according to RFC3339).
TimeLastSeenLessThanOrEqualTo string
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.
compartmentIdInSubtree Boolean
Flag to determine whether the info should be gathered only in the compartment or in the compartment and its subcompartments.
filters Changes to this property will trigger replacement. List<GetFleetErrorsFilter>
fleetId String
The ID of the Fleet.
timeFirstSeenGreaterThanOrEqualTo String
If specified, only errors with a first seen time later than this parameter will be included in the search (formatted according to RFC3339).
timeFirstSeenLessThanOrEqualTo String
If specified, only errors with a first seen time earlier than this parameter will be included in the search (formatted according to RFC3339).
timeLastSeenGreaterThanOrEqualTo String
If specified, only errors with a last seen time later than this parameter will be included in the search (formatted according to RFC3339).
timeLastSeenLessThanOrEqualTo String
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.
compartmentIdInSubtree boolean
Flag to determine whether the info should be gathered only in the compartment or in the compartment and its subcompartments.
filters Changes to this property will trigger replacement. GetFleetErrorsFilter[]
fleetId string
The ID of the Fleet.
timeFirstSeenGreaterThanOrEqualTo string
If specified, only errors with a first seen time later than this parameter will be included in the search (formatted according to RFC3339).
timeFirstSeenLessThanOrEqualTo string
If specified, only errors with a first seen time earlier than this parameter will be included in the search (formatted according to RFC3339).
timeLastSeenGreaterThanOrEqualTo string
If specified, only errors with a last seen time later than this parameter will be included in the search (formatted according to RFC3339).
timeLastSeenLessThanOrEqualTo string
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_in_subtree bool
Flag to determine whether the info should be gathered only in the compartment or in the compartment and its subcompartments.
filters Changes to this property will trigger replacement. Sequence[jms.GetFleetErrorsFilter]
fleet_id str
The ID of the Fleet.
time_first_seen_greater_than_or_equal_to str
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_seen_less_than_or_equal_to str
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_seen_greater_than_or_equal_to str
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_seen_less_than_or_equal_to str
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.
compartmentIdInSubtree Boolean
Flag to determine whether the info should be gathered only in the compartment or in the compartment and its subcompartments.
filters Changes to this property will trigger replacement. List<Property Map>
fleetId String
The ID of the Fleet.
timeFirstSeenGreaterThanOrEqualTo String
If specified, only errors with a first seen time later than this parameter will be included in the search (formatted according to RFC3339).
timeFirstSeenLessThanOrEqualTo String
If specified, only errors with a first seen time earlier than this parameter will be included in the search (formatted according to RFC3339).
timeLastSeenGreaterThanOrEqualTo String
If specified, only errors with a last seen time later than this parameter will be included in the search (formatted according to RFC3339).
timeLastSeenLessThanOrEqualTo String
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:

FleetErrorCollections List<GetFleetErrorsFleetErrorCollection>
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.
CompartmentIdInSubtree bool
Filters List<GetFleetErrorsFilter>
FleetId string
The OCID of the Fleet.
TimeFirstSeenGreaterThanOrEqualTo string
TimeFirstSeenLessThanOrEqualTo string
TimeLastSeenGreaterThanOrEqualTo string
TimeLastSeenLessThanOrEqualTo string
FleetErrorCollections []GetFleetErrorsFleetErrorCollection
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.
CompartmentIdInSubtree bool
Filters []GetFleetErrorsFilter
FleetId string
The OCID of the Fleet.
TimeFirstSeenGreaterThanOrEqualTo string
TimeFirstSeenLessThanOrEqualTo string
TimeLastSeenGreaterThanOrEqualTo string
TimeLastSeenLessThanOrEqualTo string
fleetErrorCollections List<GetFleetErrorsFleetErrorCollection>
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.
compartmentIdInSubtree Boolean
filters List<GetFleetErrorsFilter>
fleetId String
The OCID of the Fleet.
timeFirstSeenGreaterThanOrEqualTo String
timeFirstSeenLessThanOrEqualTo String
timeLastSeenGreaterThanOrEqualTo String
timeLastSeenLessThanOrEqualTo String
fleetErrorCollections GetFleetErrorsFleetErrorCollection[]
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.
compartmentIdInSubtree boolean
filters GetFleetErrorsFilter[]
fleetId string
The OCID of the Fleet.
timeFirstSeenGreaterThanOrEqualTo string
timeFirstSeenLessThanOrEqualTo string
timeLastSeenGreaterThanOrEqualTo string
timeLastSeenLessThanOrEqualTo string
fleetErrorCollections List<Property Map>
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.
compartmentIdInSubtree Boolean
filters List<Property Map>
fleetId String
The OCID of the Fleet.
timeFirstSeenGreaterThanOrEqualTo String
timeFirstSeenLessThanOrEqualTo String
timeLastSeenGreaterThanOrEqualTo String
timeLastSeenLessThanOrEqualTo String

Supporting Types

GetFleetErrorsFilter

Name This property is required. string
Values This property is required. List<string>
Regex bool
Name This property is required. string
Values This property is required. []string
Regex bool
name This property is required. String
values This property is required. List<String>
regex Boolean
name This property is required. string
values This property is required. string[]
regex boolean
name This property is required. str
values This property is required. Sequence[str]
regex bool
name This property is required. String
values This property is required. List<String>
regex Boolean

GetFleetErrorsFleetErrorCollection

Items This property is required. List<GetFleetErrorsFleetErrorCollectionItem>
A list of FleetErrorSummary.
Items This property is required. []GetFleetErrorsFleetErrorCollectionItem
A list of FleetErrorSummary.
items This property is required. List<GetFleetErrorsFleetErrorCollectionItem>
A list of FleetErrorSummary.
items This property is required. GetFleetErrorsFleetErrorCollectionItem[]
A list of FleetErrorSummary.
items This property is required. Sequence[jms.GetFleetErrorsFleetErrorCollectionItem]
A list of FleetErrorSummary.
items This property is required. List<Property Map>
A list of FleetErrorSummary.

GetFleetErrorsFleetErrorCollectionItem

CompartmentId This property is required. string
The OCID of the compartment in which to list resources.
Errors This property is required. List<GetFleetErrorsFleetErrorCollectionItemError>
List of fleet error details.
FleetId This property is required. string
The ID of the Fleet.
FleetName This property is required. string
The display name of the Fleet.
TimeFirstSeen This property is required. string
The timestamp of the first time an error was detected.
TimeLastSeen This property is required. string
The timestamp of the last time an error was detected.
CompartmentId This property is required. string
The OCID of the compartment in which to list resources.
Errors This property is required. []GetFleetErrorsFleetErrorCollectionItemError
List of fleet error details.
FleetId This property is required. string
The ID of the Fleet.
FleetName This property is required. string
The display name of the Fleet.
TimeFirstSeen This property is required. string
The timestamp of the first time an error was detected.
TimeLastSeen This property is required. string
The timestamp of the last time an error was detected.
compartmentId This property is required. String
The OCID of the compartment in which to list resources.
errors This property is required. List<GetFleetErrorsFleetErrorCollectionItemError>
List of fleet error details.
fleetId This property is required. String
The ID of the Fleet.
fleetName This property is required. String
The display name of the Fleet.
timeFirstSeen This property is required. String
The timestamp of the first time an error was detected.
timeLastSeen This property is required. String
The timestamp of the last time an error was detected.
compartmentId This property is required. string
The OCID of the compartment in which to list resources.
errors This property is required. GetFleetErrorsFleetErrorCollectionItemError[]
List of fleet error details.
fleetId This property is required. string
The ID of the Fleet.
fleetName This property is required. string
The display name of the Fleet.
timeFirstSeen This property is required. string
The timestamp of the first time an error was detected.
timeLastSeen This property is required. string
The timestamp of the last time an error was detected.
compartment_id This property is required. str
The OCID of the compartment in which to list resources.
errors This property is required. Sequence[jms.GetFleetErrorsFleetErrorCollectionItemError]
List of fleet error details.
fleet_id This property is required. str
The ID of the Fleet.
fleet_name This property is required. str
The display name of the Fleet.
time_first_seen This property is required. str
The timestamp of the first time an error was detected.
time_last_seen This property is required. str
The timestamp of the last time an error was detected.
compartmentId This property is required. String
The OCID of the compartment in which to list resources.
errors This property is required. List<Property Map>
List of fleet error details.
fleetId This property is required. String
The ID of the Fleet.
fleetName This property is required. String
The display name of the Fleet.
timeFirstSeen This property is required. String
The timestamp of the first time an error was detected.
timeLastSeen This property is required. String
The timestamp of the last time an error was detected.

GetFleetErrorsFleetErrorCollectionItemError

Details This property is required. string
Optional string containing additional details.
Reason This property is required. string
The fleet error reason.
TimeLastSeen This property is required. string
The timestamp of the last time an error was detected.
Details This property is required. string
Optional string containing additional details.
Reason This property is required. string
The fleet error reason.
TimeLastSeen This property is required. string
The timestamp of the last time an error was detected.
details This property is required. String
Optional string containing additional details.
reason This property is required. String
The fleet error reason.
timeLastSeen This property is required. String
The timestamp of the last time an error was detected.
details This property is required. string
Optional string containing additional details.
reason This property is required. string
The fleet error reason.
timeLastSeen This property is required. string
The timestamp of the last time an error was detected.
details This property is required. str
Optional string containing additional details.
reason This property is required. str
The fleet error reason.
time_last_seen This property is required. str
The timestamp of the last time an error was detected.
details This property is required. String
Optional string containing additional details.
reason This property is required. String
The fleet error reason.
timeLastSeen This property is required. String
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 oci Terraform Provider.
Oracle Cloud Infrastructure v2.31.0 published on Thursday, Apr 17, 2025 by Pulumi