Oracle Cloud Infrastructure

Pulumi Official
Package maintained by Pulumi
v0.1.1 published on Tuesday, May 3, 2022 by Pulumi

getFleets

This data source provides the list of Fleets in Oracle Cloud Infrastructure Jms service.

Returns a list of all the Fleets contained by a compartment. The query parameter compartmentId is required unless the query parameter id is specified.

Example Usage

using Pulumi;
using Oci = Pulumi.Oci;

class MyStack : Stack
{
    public MyStack()
    {
        var testFleets = Output.Create(Oci.Jms.GetFleets.InvokeAsync(new Oci.Jms.GetFleetsArgs
        {
            CompartmentId = @var.Compartment_id,
            DisplayName = @var.Fleet_display_name,
            Id = @var.Fleet_id,
            State = @var.Fleet_state,
        }));
    }

}
package main

import (
	"github.com/pulumi/pulumi-oci/sdk/go/oci/Jms"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Jms.GetFleets(ctx, &jms.GetFleetsArgs{
			CompartmentId: pulumi.StringRef(_var.Compartment_id),
			DisplayName:   pulumi.StringRef(_var.Fleet_display_name),
			Id:            pulumi.StringRef(_var.Fleet_id),
			State:         pulumi.StringRef(_var.Fleet_state),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

Coming soon!

import pulumi
import pulumi_oci as oci

test_fleets = oci.Jms.get_fleets(compartment_id=var["compartment_id"],
    display_name=var["fleet_display_name"],
    id=var["fleet_id"],
    state=var["fleet_state"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testFleets = oci.Jms.getFleets({
    compartmentId: _var.compartment_id,
    displayName: _var.fleet_display_name,
    id: _var.fleet_id,
    state: _var.fleet_state,
});

Coming soon!

Using getFleets

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 getFleets(args: GetFleetsArgs, opts?: InvokeOptions): Promise<GetFleetsResult>
function getFleetsOutput(args: GetFleetsOutputArgs, opts?: InvokeOptions): Output<GetFleetsResult>
def get_fleets(compartment_id: Optional[str] = None,
               display_name: Optional[str] = None,
               filters: Optional[Sequence[_jms.GetFleetsFilter]] = None,
               id: Optional[str] = None,
               state: Optional[str] = None,
               opts: Optional[InvokeOptions] = None) -> GetFleetsResult
def get_fleets_output(compartment_id: Optional[pulumi.Input[str]] = None,
               display_name: Optional[pulumi.Input[str]] = None,
               filters: Optional[pulumi.Input[Sequence[pulumi.Input[_jms.GetFleetsFilterArgs]]]] = None,
               id: Optional[pulumi.Input[str]] = None,
               state: Optional[pulumi.Input[str]] = None,
               opts: Optional[InvokeOptions] = None) -> Output[GetFleetsResult]
func GetFleets(ctx *Context, args *GetFleetsArgs, opts ...InvokeOption) (*GetFleetsResult, error)
func GetFleetsOutput(ctx *Context, args *GetFleetsOutputArgs, opts ...InvokeOption) GetFleetsResultOutput

> Note: This function is named GetFleets in the Go SDK.

public static class GetFleets 
{
    public static Task<GetFleetsResult> InvokeAsync(GetFleetsArgs args, InvokeOptions? opts = null)
    public static Output<GetFleetsResult> Invoke(GetFleetsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetFleetsResult> getFleets(GetFleetsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: oci:Jms/getFleets:getFleets
  Arguments:
    # Arguments dictionary

The following arguments are supported:

CompartmentId string

The OCID of the compartment in which to list resources.

DisplayName string

The display name.

Filters List<GetFleetsFilter>
Id string

The ID of the Fleet.

State string

The state of the lifecycle.

CompartmentId string

The OCID of the compartment in which to list resources.

DisplayName string

The display name.

Filters []GetFleetsFilter
Id string

The ID of the Fleet.

State string

The state of the lifecycle.

compartmentId String

The OCID of the compartment in which to list resources.

displayName String

The display name.

filters List<GetFleetsFilter>
id String

The ID of the Fleet.

state String

The state of the lifecycle.

compartmentId string

The OCID of the compartment in which to list resources.

displayName string

The display name.

filters GetFleetsFilter[]
id string

The ID of the Fleet.

state string

The state of the lifecycle.

compartment_id str

The OCID of the compartment in which to list resources.

display_name str

The display name.

filters GetFleetsFilter]
id str

The ID of the Fleet.

state str

The state of the lifecycle.

compartmentId String

The OCID of the compartment in which to list resources.

displayName String

The display name.

filters List<Property Map>
id String

The ID of the Fleet.

state String

The state of the lifecycle.

getFleets Result

The following output properties are available:

FleetCollections List<GetFleetsFleetCollection>

The list of fleet_collection.

CompartmentId string

The OCID of the compartment of the Fleet.

DisplayName string

The name of the Fleet.

Filters List<GetFleetsFilter>
Id string

The OCID of the Fleet.

State string

The lifecycle state of the Fleet.

FleetCollections []GetFleetsFleetCollection

The list of fleet_collection.

CompartmentId string

The OCID of the compartment of the Fleet.

DisplayName string

The name of the Fleet.

Filters []GetFleetsFilter
Id string

The OCID of the Fleet.

State string

The lifecycle state of the Fleet.

fleetCollections List<GetFleetsFleetCollection>

The list of fleet_collection.

compartmentId String

The OCID of the compartment of the Fleet.

displayName String

The name of the Fleet.

filters List<GetFleetsFilter>
id String

The OCID of the Fleet.

state String

The lifecycle state of the Fleet.

fleetCollections GetFleetsFleetCollection[]

The list of fleet_collection.

compartmentId string

The OCID of the compartment of the Fleet.

displayName string

The name of the Fleet.

filters GetFleetsFilter[]
id string

The OCID of the Fleet.

state string

The lifecycle state of the Fleet.

fleet_collections GetFleetsFleetCollection]

The list of fleet_collection.

compartment_id str

The OCID of the compartment of the Fleet.

display_name str

The name of the Fleet.

filters GetFleetsFilter]
id str

The OCID of the Fleet.

state str

The lifecycle state of the Fleet.

fleetCollections List<Property Map>

The list of fleet_collection.

compartmentId String

The OCID of the compartment of the Fleet.

displayName String

The name of the Fleet.

filters List<Property Map>
id String

The OCID of the Fleet.

state String

The lifecycle state of the Fleet.

Supporting Types

GetFleetsFilter

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

GetFleetsFleetCollection

GetFleetsFleetCollectionItem

ApproximateApplicationCount int

The approximate count of all unique applications in the Fleet in the past seven days. This metric is provided on a best-effort manner, and is not taken into account when computing the resource ETag.

ApproximateInstallationCount int

The approximate count of all unique Java installations in the Fleet in the past seven days. This metric is provided on a best-effort manner, and is not taken into account when computing the resource ETag.

ApproximateJreCount int

The approximate count of all unique Java Runtimes in the Fleet in the past seven days. This metric is provided on a best-effort manner, and is not taken into account when computing the resource ETag.

ApproximateManagedInstanceCount int

The approximate count of all unique managed instances in the Fleet in the past seven days. This metric is provided on a best-effort manner, and is not taken into account when computing the resource ETag.

CompartmentId string

The OCID of the compartment in which to list resources.

DefinedTags Dictionary<string, object>

Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}. (See Understanding Free-form Tags).

Description string

The Fleet's description.

DisplayName string

The display name.

FreeformTags Dictionary<string, object>

Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}. (See Managing Tags and Tag Namespaces.)

Id string

The ID of the Fleet.

InventoryLogs List<GetFleetsFleetCollectionItemInventoryLog>

Custom Log for inventory or operation log.

OperationLogs List<GetFleetsFleetCollectionItemOperationLog>

Custom Log for inventory or operation log.

State string

The state of the lifecycle.

SystemTags Dictionary<string, object>

System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. System tags can be viewed by users, but can only be created by the system. Example: {"orcl-cloud.free-tier-retained": "true"}

TimeCreated string

The creation date and time of the Fleet (formatted according to RFC3339).

ApproximateApplicationCount int

The approximate count of all unique applications in the Fleet in the past seven days. This metric is provided on a best-effort manner, and is not taken into account when computing the resource ETag.

ApproximateInstallationCount int

The approximate count of all unique Java installations in the Fleet in the past seven days. This metric is provided on a best-effort manner, and is not taken into account when computing the resource ETag.

ApproximateJreCount int

The approximate count of all unique Java Runtimes in the Fleet in the past seven days. This metric is provided on a best-effort manner, and is not taken into account when computing the resource ETag.

ApproximateManagedInstanceCount int

The approximate count of all unique managed instances in the Fleet in the past seven days. This metric is provided on a best-effort manner, and is not taken into account when computing the resource ETag.

CompartmentId string

The OCID of the compartment in which to list resources.

DefinedTags map[string]interface{}

Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}. (See Understanding Free-form Tags).

Description string

The Fleet's description.

DisplayName string

The display name.

FreeformTags map[string]interface{}

Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}. (See Managing Tags and Tag Namespaces.)

Id string

The ID of the Fleet.

InventoryLogs []GetFleetsFleetCollectionItemInventoryLog

Custom Log for inventory or operation log.

OperationLogs []GetFleetsFleetCollectionItemOperationLog

Custom Log for inventory or operation log.

State string

The state of the lifecycle.

SystemTags map[string]interface{}

System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. System tags can be viewed by users, but can only be created by the system. Example: {"orcl-cloud.free-tier-retained": "true"}

TimeCreated string

The creation date and time of the Fleet (formatted according to RFC3339).

approximateApplicationCount Integer

The approximate count of all unique applications in the Fleet in the past seven days. This metric is provided on a best-effort manner, and is not taken into account when computing the resource ETag.

approximateInstallationCount Integer

The approximate count of all unique Java installations in the Fleet in the past seven days. This metric is provided on a best-effort manner, and is not taken into account when computing the resource ETag.

approximateJreCount Integer

The approximate count of all unique Java Runtimes in the Fleet in the past seven days. This metric is provided on a best-effort manner, and is not taken into account when computing the resource ETag.

approximateManagedInstanceCount Integer

The approximate count of all unique managed instances in the Fleet in the past seven days. This metric is provided on a best-effort manner, and is not taken into account when computing the resource ETag.

compartmentId String

The OCID of the compartment in which to list resources.

definedTags Map<String,Object>

Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}. (See Understanding Free-form Tags).

description String

The Fleet's description.

displayName String

The display name.

freeformTags Map<String,Object>

Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}. (See Managing Tags and Tag Namespaces.)

id String

The ID of the Fleet.

inventoryLogs List<GetFleetsFleetCollectionItemInventoryLog>

Custom Log for inventory or operation log.

operationLogs List<GetFleetsFleetCollectionItemOperationLog>

Custom Log for inventory or operation log.

state String

The state of the lifecycle.

systemTags Map<String,Object>

System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. System tags can be viewed by users, but can only be created by the system. Example: {"orcl-cloud.free-tier-retained": "true"}

timeCreated String

The creation date and time of the Fleet (formatted according to RFC3339).

approximateApplicationCount number

The approximate count of all unique applications in the Fleet in the past seven days. This metric is provided on a best-effort manner, and is not taken into account when computing the resource ETag.

approximateInstallationCount number

The approximate count of all unique Java installations in the Fleet in the past seven days. This metric is provided on a best-effort manner, and is not taken into account when computing the resource ETag.

approximateJreCount number

The approximate count of all unique Java Runtimes in the Fleet in the past seven days. This metric is provided on a best-effort manner, and is not taken into account when computing the resource ETag.

approximateManagedInstanceCount number

The approximate count of all unique managed instances in the Fleet in the past seven days. This metric is provided on a best-effort manner, and is not taken into account when computing the resource ETag.

compartmentId string

The OCID of the compartment in which to list resources.

definedTags {[key: string]: any}

Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}. (See Understanding Free-form Tags).

description string

The Fleet's description.

displayName string

The display name.

freeformTags {[key: string]: any}

Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}. (See Managing Tags and Tag Namespaces.)

id string

The ID of the Fleet.

inventoryLogs GetFleetsFleetCollectionItemInventoryLog[]

Custom Log for inventory or operation log.

operationLogs GetFleetsFleetCollectionItemOperationLog[]

Custom Log for inventory or operation log.

state string

The state of the lifecycle.

systemTags {[key: string]: any}

System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. System tags can be viewed by users, but can only be created by the system. Example: {"orcl-cloud.free-tier-retained": "true"}

timeCreated string

The creation date and time of the Fleet (formatted according to RFC3339).

approximate_application_count int

The approximate count of all unique applications in the Fleet in the past seven days. This metric is provided on a best-effort manner, and is not taken into account when computing the resource ETag.

approximate_installation_count int

The approximate count of all unique Java installations in the Fleet in the past seven days. This metric is provided on a best-effort manner, and is not taken into account when computing the resource ETag.

approximate_jre_count int

The approximate count of all unique Java Runtimes in the Fleet in the past seven days. This metric is provided on a best-effort manner, and is not taken into account when computing the resource ETag.

approximate_managed_instance_count int

The approximate count of all unique managed instances in the Fleet in the past seven days. This metric is provided on a best-effort manner, and is not taken into account when computing the resource ETag.

compartment_id str

The OCID of the compartment in which to list resources.

defined_tags Mapping[str, Any]

Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}. (See Understanding Free-form Tags).

description str

The Fleet's description.

display_name str

The display name.

freeform_tags Mapping[str, Any]

Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}. (See Managing Tags and Tag Namespaces.)

id str

The ID of the Fleet.

inventory_logs GetFleetsFleetCollectionItemInventoryLog]

Custom Log for inventory or operation log.

operation_logs GetFleetsFleetCollectionItemOperationLog]

Custom Log for inventory or operation log.

state str

The state of the lifecycle.

system_tags Mapping[str, Any]

System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. System tags can be viewed by users, but can only be created by the system. Example: {"orcl-cloud.free-tier-retained": "true"}

time_created str

The creation date and time of the Fleet (formatted according to RFC3339).

approximateApplicationCount Number

The approximate count of all unique applications in the Fleet in the past seven days. This metric is provided on a best-effort manner, and is not taken into account when computing the resource ETag.

approximateInstallationCount Number

The approximate count of all unique Java installations in the Fleet in the past seven days. This metric is provided on a best-effort manner, and is not taken into account when computing the resource ETag.

approximateJreCount Number

The approximate count of all unique Java Runtimes in the Fleet in the past seven days. This metric is provided on a best-effort manner, and is not taken into account when computing the resource ETag.

approximateManagedInstanceCount Number

The approximate count of all unique managed instances in the Fleet in the past seven days. This metric is provided on a best-effort manner, and is not taken into account when computing the resource ETag.

compartmentId String

The OCID of the compartment in which to list resources.

definedTags Map<Any>

Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}. (See Understanding Free-form Tags).

description String

The Fleet's description.

displayName String

The display name.

freeformTags Map<Any>

Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}. (See Managing Tags and Tag Namespaces.)

id String

The ID of the Fleet.

inventoryLogs List<Property Map>

Custom Log for inventory or operation log.

operationLogs List<Property Map>

Custom Log for inventory or operation log.

state String

The state of the lifecycle.

systemTags Map<Any>

System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. System tags can be viewed by users, but can only be created by the system. Example: {"orcl-cloud.free-tier-retained": "true"}

timeCreated String

The creation date and time of the Fleet (formatted according to RFC3339).

GetFleetsFleetCollectionItemInventoryLog

LogGroupId string

The OCID of the log group.

LogId string

The OCID of the log.

LogGroupId string

The OCID of the log group.

LogId string

The OCID of the log.

logGroupId String

The OCID of the log group.

logId String

The OCID of the log.

logGroupId string

The OCID of the log group.

logId string

The OCID of the log.

log_group_id str

The OCID of the log group.

log_id str

The OCID of the log.

logGroupId String

The OCID of the log group.

logId String

The OCID of the log.

GetFleetsFleetCollectionItemOperationLog

LogGroupId string

The OCID of the log group.

LogId string

The OCID of the log.

LogGroupId string

The OCID of the log group.

LogId string

The OCID of the log.

logGroupId String

The OCID of the log group.

logId String

The OCID of the log.

logGroupId string

The OCID of the log group.

logId string

The OCID of the log.

log_group_id str

The OCID of the log group.

log_id str

The OCID of the log.

logGroupId String

The OCID of the log group.

logId String

The OCID of the log.

Package Details

Repository
https://github.com/pulumi/pulumi-oci
License
Apache-2.0
Notes

This Pulumi package is based on the oci Terraform Provider.