Oracle Cloud Infrastructure v2.18.0 published on Friday, Nov 22, 2024 by Pulumi
oci.Jms.getFleets
Explore with Pulumi AI
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
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testFleets = oci.Jms.getFleets({
compartmentId: compartmentId,
displayName: fleetDisplayName,
displayNameContains: fleetDisplayNameContains,
id: fleetId,
state: fleetState,
});
import pulumi
import pulumi_oci as oci
test_fleets = oci.Jms.get_fleets(compartment_id=compartment_id,
display_name=fleet_display_name,
display_name_contains=fleet_display_name_contains,
id=fleet_id,
state=fleet_state)
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.GetFleets(ctx, &jms.GetFleetsArgs{
CompartmentId: pulumi.StringRef(compartmentId),
DisplayName: pulumi.StringRef(fleetDisplayName),
DisplayNameContains: pulumi.StringRef(fleetDisplayNameContains),
Id: pulumi.StringRef(fleetId),
State: pulumi.StringRef(fleetState),
}, 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 testFleets = Oci.Jms.GetFleets.Invoke(new()
{
CompartmentId = compartmentId,
DisplayName = fleetDisplayName,
DisplayNameContains = fleetDisplayNameContains,
Id = fleetId,
State = fleetState,
});
});
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.GetFleetsArgs;
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 testFleets = JmsFunctions.getFleets(GetFleetsArgs.builder()
.compartmentId(compartmentId)
.displayName(fleetDisplayName)
.displayNameContains(fleetDisplayNameContains)
.id(fleetId)
.state(fleetState)
.build());
}
}
variables:
testFleets:
fn::invoke:
Function: oci:Jms:getFleets
Arguments:
compartmentId: ${compartmentId}
displayName: ${fleetDisplayName}
displayNameContains: ${fleetDisplayNameContains}
id: ${fleetId}
state: ${fleetState}
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,
display_name_contains: 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,
display_name_contains: 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:
- Compartment
Id string - The OCID of the compartment in which to list resources.
- Display
Name string - The display name.
- Display
Name stringContains - Filter the list with displayName contains the given value.
- Filters
List<Get
Fleets Filter> - Id string
- The ID.
- State string
- The state of the lifecycle.
- Compartment
Id string - The OCID of the compartment in which to list resources.
- Display
Name string - The display name.
- Display
Name stringContains - Filter the list with displayName contains the given value.
- Filters
[]Get
Fleets Filter - Id string
- The ID.
- State string
- The state of the lifecycle.
- compartment
Id String - The OCID of the compartment in which to list resources.
- display
Name String - The display name.
- display
Name StringContains - Filter the list with displayName contains the given value.
- filters
List<Get
Fleets Filter> - id String
- The ID.
- state String
- The state of the lifecycle.
- compartment
Id string - The OCID of the compartment in which to list resources.
- display
Name string - The display name.
- display
Name stringContains - Filter the list with displayName contains the given value.
- filters
Get
Fleets Filter[] - id string
- The ID.
- 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.
- display_
name_ strcontains - Filter the list with displayName contains the given value.
- filters
Sequence[jms.
Get Fleets Filter] - id str
- The ID.
- state str
- The state of the lifecycle.
- compartment
Id String - The OCID of the compartment in which to list resources.
- display
Name String - The display name.
- display
Name StringContains - Filter the list with displayName contains the given value.
- filters List<Property Map>
- id String
- The ID.
- state String
- The state of the lifecycle.
getFleets Result
The following output properties are available:
- Fleet
Collections List<GetFleets Fleet Collection> - The list of fleet_collection.
- Compartment
Id string - The OCID of the compartment of the Fleet.
- Display
Name string - The name of the Fleet.
- Display
Name stringContains - Filters
List<Get
Fleets Filter> - Id string
- The OCID of the Fleet.
- State string
- The lifecycle state of the Fleet.
- Fleet
Collections []GetFleets Fleet Collection - The list of fleet_collection.
- Compartment
Id string - The OCID of the compartment of the Fleet.
- Display
Name string - The name of the Fleet.
- Display
Name stringContains - Filters
[]Get
Fleets Filter - Id string
- The OCID of the Fleet.
- State string
- The lifecycle state of the Fleet.
- fleet
Collections List<GetFleets Fleet Collection> - The list of fleet_collection.
- compartment
Id String - The OCID of the compartment of the Fleet.
- display
Name String - The name of the Fleet.
- display
Name StringContains - filters
List<Get
Fleets Filter> - id String
- The OCID of the Fleet.
- state String
- The lifecycle state of the Fleet.
- fleet
Collections GetFleets Fleet Collection[] - The list of fleet_collection.
- compartment
Id string - The OCID of the compartment of the Fleet.
- display
Name string - The name of the Fleet.
- display
Name stringContains - filters
Get
Fleets Filter[] - id string
- The OCID of the Fleet.
- state string
- The lifecycle state of the Fleet.
- fleet_
collections Sequence[jms.Get Fleets Fleet Collection] - The list of fleet_collection.
- compartment_
id str - The OCID of the compartment of the Fleet.
- display_
name str - The name of the Fleet.
- display_
name_ strcontains - filters
Sequence[jms.
Get Fleets Filter] - id str
- The OCID of the Fleet.
- state str
- The lifecycle state of the Fleet.
- fleet
Collections List<Property Map> - The list of fleet_collection.
- compartment
Id String - The OCID of the compartment of the Fleet.
- display
Name String - The name of the Fleet.
- display
Name StringContains - filters List<Property Map>
- id String
- The OCID of the Fleet.
- state String
- The lifecycle state of the Fleet.
Supporting Types
GetFleetsFilter
GetFleetsFleetCollection
GetFleetsFleetCollectionItem
- Approximate
Application intCount - 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 isn't taken into account when computing the resource ETag.
- Approximate
Installation intCount - 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 isn't taken into account when computing the resource ETag.
- Approximate
Java intServer Count - The approximate count of all unique Java servers in the Fleet in the past seven days. This metric is provided on a best-effort manner, and isn't taken into account when computing the resource ETag.
- Approximate
Jre intCount - 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 isn't taken into account when computing the resource ETag.
- Approximate
Managed intInstance Count - 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 isn't taken into account when computing the resource ETag.
- Compartment
Id string - The OCID of the compartment in which to list resources.
- Dictionary<string, string>
- 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.
- Display
Name string - The display name.
- Dictionary<string, string>
- 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.
- Inventory
Logs List<GetFleets Fleet Collection Item Inventory Log> - Custom Log for inventory or operation log.
- Is
Advanced boolFeatures Enabled - Whether or not advanced features are enabled in this Fleet. Deprecated, use
/fleets/{fleetId}/advanceFeatureConfiguration
API instead. - Is
Export boolSetting Enabled - Whether or not export setting is enabled in this Fleet.
- Operation
Logs List<GetFleets Fleet Collection Item Operation Log> - Custom Log for inventory or operation log.
- State string
- The state of the lifecycle.
- Dictionary<string, string>
- 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 string - The creation date and time of the Fleet (formatted according to RFC3339).
- Approximate
Application intCount - 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 isn't taken into account when computing the resource ETag.
- Approximate
Installation intCount - 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 isn't taken into account when computing the resource ETag.
- Approximate
Java intServer Count - The approximate count of all unique Java servers in the Fleet in the past seven days. This metric is provided on a best-effort manner, and isn't taken into account when computing the resource ETag.
- Approximate
Jre intCount - 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 isn't taken into account when computing the resource ETag.
- Approximate
Managed intInstance Count - 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 isn't taken into account when computing the resource ETag.
- Compartment
Id string - The OCID of the compartment in which to list resources.
- map[string]string
- 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.
- Display
Name string - The display name.
- map[string]string
- 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.
- Inventory
Logs []GetFleets Fleet Collection Item Inventory Log - Custom Log for inventory or operation log.
- Is
Advanced boolFeatures Enabled - Whether or not advanced features are enabled in this Fleet. Deprecated, use
/fleets/{fleetId}/advanceFeatureConfiguration
API instead. - Is
Export boolSetting Enabled - Whether or not export setting is enabled in this Fleet.
- Operation
Logs []GetFleets Fleet Collection Item Operation Log - Custom Log for inventory or operation log.
- State string
- The state of the lifecycle.
- map[string]string
- 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 string - The creation date and time of the Fleet (formatted according to RFC3339).
- approximate
Application IntegerCount - 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 isn't taken into account when computing the resource ETag.
- approximate
Installation IntegerCount - 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 isn't taken into account when computing the resource ETag.
- approximate
Java IntegerServer Count - The approximate count of all unique Java servers in the Fleet in the past seven days. This metric is provided on a best-effort manner, and isn't taken into account when computing the resource ETag.
- approximate
Jre IntegerCount - 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 isn't taken into account when computing the resource ETag.
- approximate
Managed IntegerInstance Count - 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 isn't taken into account when computing the resource ETag.
- compartment
Id String - The OCID of the compartment in which to list resources.
- Map<String,String>
- 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.
- display
Name String - The display name.
- Map<String,String>
- 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.
- inventory
Logs List<GetFleets Fleet Collection Item Inventory Log> - Custom Log for inventory or operation log.
- is
Advanced BooleanFeatures Enabled - Whether or not advanced features are enabled in this Fleet. Deprecated, use
/fleets/{fleetId}/advanceFeatureConfiguration
API instead. - is
Export BooleanSetting Enabled - Whether or not export setting is enabled in this Fleet.
- operation
Logs List<GetFleets Fleet Collection Item Operation Log> - Custom Log for inventory or operation log.
- state String
- The state of the lifecycle.
- Map<String,String>
- 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 String - The creation date and time of the Fleet (formatted according to RFC3339).
- approximate
Application numberCount - 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 isn't taken into account when computing the resource ETag.
- approximate
Installation numberCount - 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 isn't taken into account when computing the resource ETag.
- approximate
Java numberServer Count - The approximate count of all unique Java servers in the Fleet in the past seven days. This metric is provided on a best-effort manner, and isn't taken into account when computing the resource ETag.
- approximate
Jre numberCount - 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 isn't taken into account when computing the resource ETag.
- approximate
Managed numberInstance Count - 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 isn't taken into account when computing the resource ETag.
- compartment
Id string - The OCID of the compartment in which to list resources.
- {[key: string]: string}
- 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.
- display
Name string - The display name.
- {[key: string]: string}
- 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.
- inventory
Logs GetFleets Fleet Collection Item Inventory Log[] - Custom Log for inventory or operation log.
- is
Advanced booleanFeatures Enabled - Whether or not advanced features are enabled in this Fleet. Deprecated, use
/fleets/{fleetId}/advanceFeatureConfiguration
API instead. - is
Export booleanSetting Enabled - Whether or not export setting is enabled in this Fleet.
- operation
Logs GetFleets Fleet Collection Item Operation Log[] - Custom Log for inventory or operation log.
- state string
- The state of the lifecycle.
- {[key: string]: string}
- 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 string - The creation date and time of the Fleet (formatted according to RFC3339).
- approximate_
application_ intcount - 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 isn't taken into account when computing the resource ETag.
- approximate_
installation_ intcount - 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 isn't taken into account when computing the resource ETag.
- approximate_
java_ intserver_ count - The approximate count of all unique Java servers in the Fleet in the past seven days. This metric is provided on a best-effort manner, and isn't taken into account when computing the resource ETag.
- approximate_
jre_ intcount - 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 isn't taken into account when computing the resource ETag.
- approximate_
managed_ intinstance_ count - 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 isn't taken into account when computing the resource ETag.
- compartment_
id str - The OCID of the compartment in which to list resources.
- Mapping[str, str]
- 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.
- Mapping[str, str]
- 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.
- inventory_
logs Sequence[jms.Get Fleets Fleet Collection Item Inventory Log] - Custom Log for inventory or operation log.
- is_
advanced_ boolfeatures_ enabled - Whether or not advanced features are enabled in this Fleet. Deprecated, use
/fleets/{fleetId}/advanceFeatureConfiguration
API instead. - is_
export_ boolsetting_ enabled - Whether or not export setting is enabled in this Fleet.
- operation_
logs Sequence[jms.Get Fleets Fleet Collection Item Operation Log] - Custom Log for inventory or operation log.
- state str
- The state of the lifecycle.
- Mapping[str, str]
- 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).
- approximate
Application NumberCount - 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 isn't taken into account when computing the resource ETag.
- approximate
Installation NumberCount - 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 isn't taken into account when computing the resource ETag.
- approximate
Java NumberServer Count - The approximate count of all unique Java servers in the Fleet in the past seven days. This metric is provided on a best-effort manner, and isn't taken into account when computing the resource ETag.
- approximate
Jre NumberCount - 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 isn't taken into account when computing the resource ETag.
- approximate
Managed NumberInstance Count - 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 isn't taken into account when computing the resource ETag.
- compartment
Id String - The OCID of the compartment in which to list resources.
- Map<String>
- 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.
- display
Name String - The display name.
- Map<String>
- 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.
- inventory
Logs List<Property Map> - Custom Log for inventory or operation log.
- is
Advanced BooleanFeatures Enabled - Whether or not advanced features are enabled in this Fleet. Deprecated, use
/fleets/{fleetId}/advanceFeatureConfiguration
API instead. - is
Export BooleanSetting Enabled - Whether or not export setting is enabled in this Fleet.
- operation
Logs List<Property Map> - Custom Log for inventory or operation log.
- state String
- The state of the lifecycle.
- Map<String>
- 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 String - The creation date and time of the Fleet (formatted according to RFC3339).
GetFleetsFleetCollectionItemInventoryLog
- Log
Group stringId - The OCID of the log group.
- Log
Id string - The OCID of the log.
- Log
Group stringId - The OCID of the log group.
- Log
Id string - The OCID of the log.
- log
Group StringId - The OCID of the log group.
- log
Id String - The OCID of the log.
- log
Group stringId - The OCID of the log group.
- log
Id string - The OCID of the log.
- log_
group_ strid - The OCID of the log group.
- log_
id str - The OCID of the log.
- log
Group StringId - The OCID of the log group.
- log
Id String - The OCID of the log.
GetFleetsFleetCollectionItemOperationLog
- Log
Group stringId - The OCID of the log group.
- Log
Id string - The OCID of the log.
- Log
Group stringId - The OCID of the log group.
- Log
Id string - The OCID of the log.
- log
Group StringId - The OCID of the log group.
- log
Id String - The OCID of the log.
- log
Group stringId - The OCID of the log group.
- log
Id string - The OCID of the log.
- log_
group_ strid - The OCID of the log group.
- log_
id str - The OCID of the log.
- log
Group StringId - The OCID of the log group.
- log
Id String - The OCID of the log.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.