1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Jms
  5. getFleetDiagnoses
Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi

oci.Jms.getFleetDiagnoses

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi

    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[_jms.GetFleetDiagnosesFilter]] = None,
                            fleet_id: Optional[str] = None,
                            opts: Optional[InvokeOptions] = None) -> GetFleetDiagnosesResult
    def get_fleet_diagnoses_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[_jms.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)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:Jms/getFleetDiagnoses:getFleetDiagnoses
      arguments:
        # arguments dictionary

    The following arguments are supported:

    fleetId String
    The OCID of the Fleet.
    filters List<Property Map>

    getFleetDiagnoses Result

    The following output properties are available:

    FleetDiagnosisCollections List<GetFleetDiagnosesFleetDiagnosisCollection>
    The list of fleet_diagnosis_collection.
    FleetId string
    Id string
    The provider-assigned unique ID for this managed resource.
    Filters List<GetFleetDiagnosesFilter>
    FleetDiagnosisCollections []GetFleetDiagnosesFleetDiagnosisCollection
    The list of fleet_diagnosis_collection.
    FleetId string
    Id string
    The provider-assigned unique ID for this managed resource.
    Filters []GetFleetDiagnosesFilter
    fleetDiagnosisCollections List<GetFleetDiagnosesFleetDiagnosisCollection>
    The list of fleet_diagnosis_collection.
    fleetId String
    id String
    The provider-assigned unique ID for this managed resource.
    filters List<GetFleetDiagnosesFilter>
    fleetDiagnosisCollections GetFleetDiagnosesFleetDiagnosisCollection[]
    The list of fleet_diagnosis_collection.
    fleetId string
    id string
    The provider-assigned unique ID for this managed resource.
    filters GetFleetDiagnosesFilter[]
    fleet_diagnosis_collections Sequence[jms.GetFleetDiagnosesFleetDiagnosisCollection]
    The list of fleet_diagnosis_collection.
    fleet_id str
    id str
    The provider-assigned unique ID for this managed resource.
    filters Sequence[jms.GetFleetDiagnosesFilter]
    fleetDiagnosisCollections List<Property Map>
    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

    Name string
    Values List<string>
    Regex bool
    Name string
    Values []string
    Regex bool
    name String
    values List<String>
    regex Boolean
    name string
    values string[]
    regex boolean
    name str
    values Sequence[str]
    regex bool
    name String
    values List<String>
    regex Boolean

    GetFleetDiagnosesFleetDiagnosisCollection

    Items List<GetFleetDiagnosesFleetDiagnosisCollectionItem>
    A list of the fleet resource diagnosis.
    Items []GetFleetDiagnosesFleetDiagnosisCollectionItem
    A list of the fleet resource diagnosis.
    items List<GetFleetDiagnosesFleetDiagnosisCollectionItem>
    A list of the fleet resource diagnosis.
    items GetFleetDiagnosesFleetDiagnosisCollectionItem[]
    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 oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi