Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.Jms.getFleetDiagnoses
Explore with Pulumi AI
This data source provides the list of Fleet Diagnoses in Oracle Cloud Infrastructure Jms service.
List potential diagnoses that would put a fleet into FAILED or NEEDS_ATTENTION lifecycle state.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testFleetDiagnoses = oci.Jms.getFleetDiagnoses({
    fleetId: testFleet.id,
});
import pulumi
import pulumi_oci as oci
test_fleet_diagnoses = oci.Jms.get_fleet_diagnoses(fleet_id=test_fleet["id"])
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.GetFleetDiagnoses(ctx, &jms.GetFleetDiagnosesArgs{
			FleetId: testFleet.Id,
		}, 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 testFleetDiagnoses = Oci.Jms.GetFleetDiagnoses.Invoke(new()
    {
        FleetId = testFleet.Id,
    });
});
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.GetFleetDiagnosesArgs;
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 testFleetDiagnoses = JmsFunctions.getFleetDiagnoses(GetFleetDiagnosesArgs.builder()
            .fleetId(testFleet.id())
            .build());
    }
}
variables:
  testFleetDiagnoses:
    fn::invoke:
      function: oci:Jms:getFleetDiagnoses
      arguments:
        fleetId: ${testFleet.id}
Using getFleetDiagnoses
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 getFleetDiagnoses(args: GetFleetDiagnosesArgs, opts?: InvokeOptions): Promise<GetFleetDiagnosesResult>
function getFleetDiagnosesOutput(args: GetFleetDiagnosesOutputArgs, opts?: InvokeOptions): Output<GetFleetDiagnosesResult>def get_fleet_diagnoses(filters: Optional[Sequence[GetFleetDiagnosesFilter]] = None,
                        fleet_id: Optional[str] = None,
                        opts: Optional[InvokeOptions] = None) -> GetFleetDiagnosesResult
def get_fleet_diagnoses_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetFleetDiagnosesFilterArgs]]]] = None,
                        fleet_id: Optional[pulumi.Input[str]] = None,
                        opts: Optional[InvokeOptions] = None) -> Output[GetFleetDiagnosesResult]func GetFleetDiagnoses(ctx *Context, args *GetFleetDiagnosesArgs, opts ...InvokeOption) (*GetFleetDiagnosesResult, error)
func GetFleetDiagnosesOutput(ctx *Context, args *GetFleetDiagnosesOutputArgs, opts ...InvokeOption) GetFleetDiagnosesResultOutput> Note: This function is named GetFleetDiagnoses in the Go SDK.
public static class GetFleetDiagnoses 
{
    public static Task<GetFleetDiagnosesResult> InvokeAsync(GetFleetDiagnosesArgs args, InvokeOptions? opts = null)
    public static Output<GetFleetDiagnosesResult> Invoke(GetFleetDiagnosesInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetFleetDiagnosesResult> getFleetDiagnoses(GetFleetDiagnosesArgs args, InvokeOptions options)
public static Output<GetFleetDiagnosesResult> getFleetDiagnoses(GetFleetDiagnosesArgs args, InvokeOptions options)
fn::invoke:
  function: oci:Jms/getFleetDiagnoses:getFleetDiagnoses
  arguments:
    # arguments dictionaryThe following arguments are supported:
- FleetId string
- The OCID of the Fleet.
- Filters
List<GetFleet Diagnoses Filter> 
- FleetId string
- The OCID of the Fleet.
- Filters
[]GetFleet Diagnoses Filter 
- fleetId String
- The OCID of the Fleet.
- filters
List<GetFleet Diagnoses Filter> 
- fleetId string
- The OCID of the Fleet.
- filters
GetFleet Diagnoses Filter[] 
- fleet_id str
- The OCID of the Fleet.
- filters
Sequence[GetFleet Diagnoses Filter] 
- fleetId String
- The OCID of the Fleet.
- filters List<Property Map>
getFleetDiagnoses Result
The following output properties are available:
- FleetDiagnosis List<GetCollections Fleet Diagnoses Fleet Diagnosis Collection> 
- The list of fleet_diagnosis_collection.
- FleetId string
- Id string
- The provider-assigned unique ID for this managed resource.
- Filters
List<GetFleet Diagnoses Filter> 
- FleetDiagnosis []GetCollections Fleet Diagnoses Fleet Diagnosis Collection 
- The list of fleet_diagnosis_collection.
- FleetId string
- Id string
- The provider-assigned unique ID for this managed resource.
- Filters
[]GetFleet Diagnoses Filter 
- fleetDiagnosis List<GetCollections Fleet Diagnoses Fleet Diagnosis Collection> 
- The list of fleet_diagnosis_collection.
- fleetId String
- id String
- The provider-assigned unique ID for this managed resource.
- filters
List<GetFleet Diagnoses Filter> 
- fleetDiagnosis GetCollections Fleet Diagnoses Fleet Diagnosis Collection[] 
- The list of fleet_diagnosis_collection.
- fleetId string
- id string
- The provider-assigned unique ID for this managed resource.
- filters
GetFleet Diagnoses Filter[] 
- fleet_diagnosis_ Sequence[Getcollections Fleet Diagnoses Fleet Diagnosis Collection] 
- The list of fleet_diagnosis_collection.
- fleet_id str
- id str
- The provider-assigned unique ID for this managed resource.
- filters
Sequence[GetFleet Diagnoses Filter] 
- fleetDiagnosis List<Property Map>Collections 
- The list of fleet_diagnosis_collection.
- fleetId String
- id String
- The provider-assigned unique ID for this managed resource.
- filters List<Property Map>
Supporting Types
GetFleetDiagnosesFilter   
GetFleetDiagnosesFleetDiagnosisCollection     
- Items
List<GetFleet Diagnoses Fleet Diagnosis Collection Item> 
- A list of the fleet resource diagnosis.
- Items
[]GetFleet Diagnoses Fleet Diagnosis Collection Item 
- A list of the fleet resource diagnosis.
- items
List<GetFleet Diagnoses Fleet Diagnosis Collection Item> 
- A list of the fleet resource diagnosis.
- items
GetFleet Diagnoses Fleet Diagnosis Collection Item[] 
- A list of the fleet resource diagnosis.
- items
Sequence[GetFleet Diagnoses Fleet Diagnosis Collection Item] 
- A list of the fleet resource diagnosis.
- items List<Property Map>
- A list of the fleet resource diagnosis.
GetFleetDiagnosesFleetDiagnosisCollectionItem      
- ResourceDiagnosis string
- The diagnosis message.
- ResourceId string
- The OCID of the external resouce needed by the fleet.
- ResourceState string
- The state of the resource. The resource state is ACTIVE when it works properly for the fleet. In case it would cause an issue for the fleet function, the state is INACTIVE. When JMS can't locate the resource, the state is NOT_FOUND. OTHER covers other cases, such as a temporarily network issue that prevents JMS from detecting the resource. Check the resourceDiagnosis for details.
- ResourceType string
- The type of the resource needed by the fleet. This is the role of a resource in the fleet. Use the OCID to determine the actual Oracle Cloud Infrastructure resource type such as log group or log.
- ResourceDiagnosis string
- The diagnosis message.
- ResourceId string
- The OCID of the external resouce needed by the fleet.
- ResourceState string
- The state of the resource. The resource state is ACTIVE when it works properly for the fleet. In case it would cause an issue for the fleet function, the state is INACTIVE. When JMS can't locate the resource, the state is NOT_FOUND. OTHER covers other cases, such as a temporarily network issue that prevents JMS from detecting the resource. Check the resourceDiagnosis for details.
- ResourceType string
- The type of the resource needed by the fleet. This is the role of a resource in the fleet. Use the OCID to determine the actual Oracle Cloud Infrastructure resource type such as log group or log.
- resourceDiagnosis String
- The diagnosis message.
- resourceId String
- The OCID of the external resouce needed by the fleet.
- resourceState String
- The state of the resource. The resource state is ACTIVE when it works properly for the fleet. In case it would cause an issue for the fleet function, the state is INACTIVE. When JMS can't locate the resource, the state is NOT_FOUND. OTHER covers other cases, such as a temporarily network issue that prevents JMS from detecting the resource. Check the resourceDiagnosis for details.
- resourceType String
- The type of the resource needed by the fleet. This is the role of a resource in the fleet. Use the OCID to determine the actual Oracle Cloud Infrastructure resource type such as log group or log.
- resourceDiagnosis string
- The diagnosis message.
- resourceId string
- The OCID of the external resouce needed by the fleet.
- resourceState string
- The state of the resource. The resource state is ACTIVE when it works properly for the fleet. In case it would cause an issue for the fleet function, the state is INACTIVE. When JMS can't locate the resource, the state is NOT_FOUND. OTHER covers other cases, such as a temporarily network issue that prevents JMS from detecting the resource. Check the resourceDiagnosis for details.
- resourceType string
- The type of the resource needed by the fleet. This is the role of a resource in the fleet. Use the OCID to determine the actual Oracle Cloud Infrastructure resource type such as log group or log.
- resource_diagnosis str
- The diagnosis message.
- resource_id str
- The OCID of the external resouce needed by the fleet.
- resource_state str
- The state of the resource. The resource state is ACTIVE when it works properly for the fleet. In case it would cause an issue for the fleet function, the state is INACTIVE. When JMS can't locate the resource, the state is NOT_FOUND. OTHER covers other cases, such as a temporarily network issue that prevents JMS from detecting the resource. Check the resourceDiagnosis for details.
- resource_type str
- The type of the resource needed by the fleet. This is the role of a resource in the fleet. Use the OCID to determine the actual Oracle Cloud Infrastructure resource type such as log group or log.
- resourceDiagnosis String
- The diagnosis message.
- resourceId String
- The OCID of the external resouce needed by the fleet.
- resourceState String
- The state of the resource. The resource state is ACTIVE when it works properly for the fleet. In case it would cause an issue for the fleet function, the state is INACTIVE. When JMS can't locate the resource, the state is NOT_FOUND. OTHER covers other cases, such as a temporarily network issue that prevents JMS from detecting the resource. Check the resourceDiagnosis for details.
- resourceType String
- The type of the resource needed by the fleet. This is the role of a resource in the fleet. Use the OCID to determine the actual Oracle Cloud Infrastructure resource type such as log group or log.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.