Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 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[_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:
- Fleet
Id string - The OCID of the Fleet.
- Filters
List<Get
Fleet Diagnoses Filter>
- Fleet
Id string - The OCID of the Fleet.
- Filters
[]Get
Fleet Diagnoses Filter
- fleet
Id String - The OCID of the Fleet.
- filters
List<Get
Fleet Diagnoses Filter>
- fleet
Id string - The OCID of the Fleet.
- filters
Get
Fleet Diagnoses Filter[]
- fleet_
id str - The OCID of the Fleet.
- filters
Sequence[jms.
Get Fleet Diagnoses Filter]
- fleet
Id String - The OCID of the Fleet.
- filters List<Property Map>
getFleetDiagnoses Result
The following output properties are available:
- Fleet
Diagnosis List<GetCollections Fleet Diagnoses Fleet Diagnosis Collection> - The list of fleet_diagnosis_collection.
- Fleet
Id string - Id string
- The provider-assigned unique ID for this managed resource.
- Filters
List<Get
Fleet Diagnoses Filter>
- Fleet
Diagnosis []GetCollections Fleet Diagnoses Fleet Diagnosis Collection - The list of fleet_diagnosis_collection.
- Fleet
Id string - Id string
- The provider-assigned unique ID for this managed resource.
- Filters
[]Get
Fleet Diagnoses Filter
- fleet
Diagnosis List<GetCollections Fleet Diagnoses Fleet Diagnosis Collection> - The list of fleet_diagnosis_collection.
- fleet
Id String - id String
- The provider-assigned unique ID for this managed resource.
- filters
List<Get
Fleet Diagnoses Filter>
- fleet
Diagnosis GetCollections Fleet Diagnoses Fleet Diagnosis Collection[] - The list of fleet_diagnosis_collection.
- fleet
Id string - id string
- The provider-assigned unique ID for this managed resource.
- filters
Get
Fleet Diagnoses Filter[]
- fleet_
diagnosis_ Sequence[jms.collections Get 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[jms.
Get Fleet Diagnoses Filter]
- fleet
Diagnosis List<Property Map>Collections - The list of fleet_diagnosis_collection.
- fleet
Id String - id String
- The provider-assigned unique ID for this managed resource.
- filters List<Property Map>
Supporting Types
GetFleetDiagnosesFilter
GetFleetDiagnosesFleetDiagnosisCollection
- Items
List<Get
Fleet Diagnoses Fleet Diagnosis Collection Item> - A list of the fleet resource diagnosis.
- Items
[]Get
Fleet Diagnoses Fleet Diagnosis Collection Item - A list of the fleet resource diagnosis.
- items
List<Get
Fleet Diagnoses Fleet Diagnosis Collection Item> - A list of the fleet resource diagnosis.
- items
Get
Fleet Diagnoses Fleet Diagnosis Collection Item[] - A list of the fleet resource diagnosis.
- items
Sequence[jms.
Get Fleet Diagnoses Fleet Diagnosis Collection Item] - A list of the fleet resource diagnosis.
- items List<Property Map>
- A list of the fleet resource diagnosis.
GetFleetDiagnosesFleetDiagnosisCollectionItem
- Resource
Diagnosis string - The diagnosis message.
- Resource
Id string - The OCID of the external resouce needed by the fleet.
- Resource
State 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.
- Resource
Type 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 string - The diagnosis message.
- Resource
Id string - The OCID of the external resouce needed by the fleet.
- Resource
State 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.
- Resource
Type 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 String - The diagnosis message.
- resource
Id String - The OCID of the external resouce needed by the fleet.
- resource
State 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.
- resource
Type 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 string - The diagnosis message.
- resource
Id string - The OCID of the external resouce needed by the fleet.
- resource
State 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.
- resource
Type 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.
- resource
Diagnosis String - The diagnosis message.
- resource
Id String - The OCID of the external resouce needed by the fleet.
- resource
State 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.
- resource
Type 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.