1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Jms
  5. getFleetLibraryManagedInstances
Oracle Cloud Infrastructure v3.9.0 published on Wednesday, Sep 24, 2025 by Pulumi

oci.Jms.getFleetLibraryManagedInstances

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v3.9.0 published on Wednesday, Sep 24, 2025 by Pulumi

    This data source provides the list of Fleet Library Managed Instances in Oracle Cloud Infrastructure Jms service.

    List managed instances where a library has been detected, filtered by query parameters.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testFleetLibraryManagedInstances = oci.Jms.getFleetLibraryManagedInstances({
        fleetId: testFleet.id,
        libraryKey: fleetLibraryManagedInstanceLibraryKey,
        applicationId: testApplication.id,
        hostName: fleetLibraryManagedInstanceHostName,
        hostnameContains: fleetLibraryManagedInstanceHostnameContains,
        managedInstanceId: testManagedInstance.id,
        timeEnd: fleetLibraryManagedInstanceTimeEnd,
        timeStart: fleetLibraryManagedInstanceTimeStart,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_fleet_library_managed_instances = oci.Jms.get_fleet_library_managed_instances(fleet_id=test_fleet["id"],
        library_key=fleet_library_managed_instance_library_key,
        application_id=test_application["id"],
        host_name=fleet_library_managed_instance_host_name,
        hostname_contains=fleet_library_managed_instance_hostname_contains,
        managed_instance_id=test_managed_instance["id"],
        time_end=fleet_library_managed_instance_time_end,
        time_start=fleet_library_managed_instance_time_start)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/v3/go/oci/jms"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := jms.GetFleetLibraryManagedInstances(ctx, &jms.GetFleetLibraryManagedInstancesArgs{
    			FleetId:           testFleet.Id,
    			LibraryKey:        fleetLibraryManagedInstanceLibraryKey,
    			ApplicationId:     pulumi.StringRef(testApplication.Id),
    			HostName:          pulumi.StringRef(fleetLibraryManagedInstanceHostName),
    			HostnameContains:  pulumi.StringRef(fleetLibraryManagedInstanceHostnameContains),
    			ManagedInstanceId: pulumi.StringRef(testManagedInstance.Id),
    			TimeEnd:           pulumi.StringRef(fleetLibraryManagedInstanceTimeEnd),
    			TimeStart:         pulumi.StringRef(fleetLibraryManagedInstanceTimeStart),
    		}, 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 testFleetLibraryManagedInstances = Oci.Jms.GetFleetLibraryManagedInstances.Invoke(new()
        {
            FleetId = testFleet.Id,
            LibraryKey = fleetLibraryManagedInstanceLibraryKey,
            ApplicationId = testApplication.Id,
            HostName = fleetLibraryManagedInstanceHostName,
            HostnameContains = fleetLibraryManagedInstanceHostnameContains,
            ManagedInstanceId = testManagedInstance.Id,
            TimeEnd = fleetLibraryManagedInstanceTimeEnd,
            TimeStart = fleetLibraryManagedInstanceTimeStart,
        });
    
    });
    
    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.GetFleetLibraryManagedInstancesArgs;
    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 testFleetLibraryManagedInstances = JmsFunctions.getFleetLibraryManagedInstances(GetFleetLibraryManagedInstancesArgs.builder()
                .fleetId(testFleet.id())
                .libraryKey(fleetLibraryManagedInstanceLibraryKey)
                .applicationId(testApplication.id())
                .hostName(fleetLibraryManagedInstanceHostName)
                .hostnameContains(fleetLibraryManagedInstanceHostnameContains)
                .managedInstanceId(testManagedInstance.id())
                .timeEnd(fleetLibraryManagedInstanceTimeEnd)
                .timeStart(fleetLibraryManagedInstanceTimeStart)
                .build());
    
        }
    }
    
    variables:
      testFleetLibraryManagedInstances:
        fn::invoke:
          function: oci:Jms:getFleetLibraryManagedInstances
          arguments:
            fleetId: ${testFleet.id}
            libraryKey: ${fleetLibraryManagedInstanceLibraryKey}
            applicationId: ${testApplication.id}
            hostName: ${fleetLibraryManagedInstanceHostName}
            hostnameContains: ${fleetLibraryManagedInstanceHostnameContains}
            managedInstanceId: ${testManagedInstance.id}
            timeEnd: ${fleetLibraryManagedInstanceTimeEnd}
            timeStart: ${fleetLibraryManagedInstanceTimeStart}
    

    Using getFleetLibraryManagedInstances

    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 getFleetLibraryManagedInstances(args: GetFleetLibraryManagedInstancesArgs, opts?: InvokeOptions): Promise<GetFleetLibraryManagedInstancesResult>
    function getFleetLibraryManagedInstancesOutput(args: GetFleetLibraryManagedInstancesOutputArgs, opts?: InvokeOptions): Output<GetFleetLibraryManagedInstancesResult>
    def get_fleet_library_managed_instances(application_id: Optional[str] = None,
                                            filters: Optional[Sequence[GetFleetLibraryManagedInstancesFilter]] = None,
                                            fleet_id: Optional[str] = None,
                                            host_name: Optional[str] = None,
                                            hostname_contains: Optional[str] = None,
                                            library_key: Optional[str] = None,
                                            managed_instance_id: Optional[str] = None,
                                            time_end: Optional[str] = None,
                                            time_start: Optional[str] = None,
                                            opts: Optional[InvokeOptions] = None) -> GetFleetLibraryManagedInstancesResult
    def get_fleet_library_managed_instances_output(application_id: Optional[pulumi.Input[str]] = None,
                                            filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetFleetLibraryManagedInstancesFilterArgs]]]] = None,
                                            fleet_id: Optional[pulumi.Input[str]] = None,
                                            host_name: Optional[pulumi.Input[str]] = None,
                                            hostname_contains: Optional[pulumi.Input[str]] = None,
                                            library_key: Optional[pulumi.Input[str]] = None,
                                            managed_instance_id: Optional[pulumi.Input[str]] = None,
                                            time_end: Optional[pulumi.Input[str]] = None,
                                            time_start: Optional[pulumi.Input[str]] = None,
                                            opts: Optional[InvokeOptions] = None) -> Output[GetFleetLibraryManagedInstancesResult]
    func GetFleetLibraryManagedInstances(ctx *Context, args *GetFleetLibraryManagedInstancesArgs, opts ...InvokeOption) (*GetFleetLibraryManagedInstancesResult, error)
    func GetFleetLibraryManagedInstancesOutput(ctx *Context, args *GetFleetLibraryManagedInstancesOutputArgs, opts ...InvokeOption) GetFleetLibraryManagedInstancesResultOutput

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

    public static class GetFleetLibraryManagedInstances 
    {
        public static Task<GetFleetLibraryManagedInstancesResult> InvokeAsync(GetFleetLibraryManagedInstancesArgs args, InvokeOptions? opts = null)
        public static Output<GetFleetLibraryManagedInstancesResult> Invoke(GetFleetLibraryManagedInstancesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetFleetLibraryManagedInstancesResult> getFleetLibraryManagedInstances(GetFleetLibraryManagedInstancesArgs args, InvokeOptions options)
    public static Output<GetFleetLibraryManagedInstancesResult> getFleetLibraryManagedInstances(GetFleetLibraryManagedInstancesArgs args, InvokeOptions options)
    
    fn::invoke:
      function: oci:Jms/getFleetLibraryManagedInstances:getFleetLibraryManagedInstances
      arguments:
        # arguments dictionary

    The following arguments are supported:

    FleetId string
    The OCID of the Fleet.
    LibraryKey string
    The unique identifier of a Java library.
    ApplicationId string
    The Fleet-unique identifier of the application.
    Filters List<GetFleetLibraryManagedInstancesFilter>
    HostName string
    The host OCID of the managed instance.
    HostnameContains string
    Filter the list with hostname contains the given value.
    ManagedInstanceId string
    The Fleet-unique identifier of the managed instance.
    TimeEnd string
    The end of the time period during which resources are searched (formatted according to RFC3339).
    TimeStart string
    The start of the time period during which resources are searched (formatted according to RFC3339).
    FleetId string
    The OCID of the Fleet.
    LibraryKey string
    The unique identifier of a Java library.
    ApplicationId string
    The Fleet-unique identifier of the application.
    Filters []GetFleetLibraryManagedInstancesFilter
    HostName string
    The host OCID of the managed instance.
    HostnameContains string
    Filter the list with hostname contains the given value.
    ManagedInstanceId string
    The Fleet-unique identifier of the managed instance.
    TimeEnd string
    The end of the time period during which resources are searched (formatted according to RFC3339).
    TimeStart string
    The start of the time period during which resources are searched (formatted according to RFC3339).
    fleetId String
    The OCID of the Fleet.
    libraryKey String
    The unique identifier of a Java library.
    applicationId String
    The Fleet-unique identifier of the application.
    filters List<GetFleetLibraryManagedInstancesFilter>
    hostName String
    The host OCID of the managed instance.
    hostnameContains String
    Filter the list with hostname contains the given value.
    managedInstanceId String
    The Fleet-unique identifier of the managed instance.
    timeEnd String
    The end of the time period during which resources are searched (formatted according to RFC3339).
    timeStart String
    The start of the time period during which resources are searched (formatted according to RFC3339).
    fleetId string
    The OCID of the Fleet.
    libraryKey string
    The unique identifier of a Java library.
    applicationId string
    The Fleet-unique identifier of the application.
    filters GetFleetLibraryManagedInstancesFilter[]
    hostName string
    The host OCID of the managed instance.
    hostnameContains string
    Filter the list with hostname contains the given value.
    managedInstanceId string
    The Fleet-unique identifier of the managed instance.
    timeEnd string
    The end of the time period during which resources are searched (formatted according to RFC3339).
    timeStart string
    The start of the time period during which resources are searched (formatted according to RFC3339).
    fleet_id str
    The OCID of the Fleet.
    library_key str
    The unique identifier of a Java library.
    application_id str
    The Fleet-unique identifier of the application.
    filters Sequence[GetFleetLibraryManagedInstancesFilter]
    host_name str
    The host OCID of the managed instance.
    hostname_contains str
    Filter the list with hostname contains the given value.
    managed_instance_id str
    The Fleet-unique identifier of the managed instance.
    time_end str
    The end of the time period during which resources are searched (formatted according to RFC3339).
    time_start str
    The start of the time period during which resources are searched (formatted according to RFC3339).
    fleetId String
    The OCID of the Fleet.
    libraryKey String
    The unique identifier of a Java library.
    applicationId String
    The Fleet-unique identifier of the application.
    filters List<Property Map>
    hostName String
    The host OCID of the managed instance.
    hostnameContains String
    Filter the list with hostname contains the given value.
    managedInstanceId String
    The Fleet-unique identifier of the managed instance.
    timeEnd String
    The end of the time period during which resources are searched (formatted according to RFC3339).
    timeStart String
    The start of the time period during which resources are searched (formatted according to RFC3339).

    getFleetLibraryManagedInstances Result

    The following output properties are available:

    FleetId string
    Id string
    The provider-assigned unique ID for this managed resource.
    LibraryKey string
    LibraryManagedInstanceUsageCollections List<GetFleetLibraryManagedInstancesLibraryManagedInstanceUsageCollection>
    The list of library_managed_instance_usage_collection.
    ApplicationId string
    Filters List<GetFleetLibraryManagedInstancesFilter>
    HostName string
    HostnameContains string
    ManagedInstanceId string
    The OCID of the related managed instance.
    TimeEnd string
    TimeStart string
    FleetId string
    Id string
    The provider-assigned unique ID for this managed resource.
    LibraryKey string
    LibraryManagedInstanceUsageCollections []GetFleetLibraryManagedInstancesLibraryManagedInstanceUsageCollection
    The list of library_managed_instance_usage_collection.
    ApplicationId string
    Filters []GetFleetLibraryManagedInstancesFilter
    HostName string
    HostnameContains string
    ManagedInstanceId string
    The OCID of the related managed instance.
    TimeEnd string
    TimeStart string
    fleetId String
    id String
    The provider-assigned unique ID for this managed resource.
    libraryKey String
    libraryManagedInstanceUsageCollections List<GetFleetLibraryManagedInstancesLibraryManagedInstanceUsageCollection>
    The list of library_managed_instance_usage_collection.
    applicationId String
    filters List<GetFleetLibraryManagedInstancesFilter>
    hostName String
    hostnameContains String
    managedInstanceId String
    The OCID of the related managed instance.
    timeEnd String
    timeStart String
    fleetId string
    id string
    The provider-assigned unique ID for this managed resource.
    libraryKey string
    libraryManagedInstanceUsageCollections GetFleetLibraryManagedInstancesLibraryManagedInstanceUsageCollection[]
    The list of library_managed_instance_usage_collection.
    applicationId string
    filters GetFleetLibraryManagedInstancesFilter[]
    hostName string
    hostnameContains string
    managedInstanceId string
    The OCID of the related managed instance.
    timeEnd string
    timeStart string
    fleet_id str
    id str
    The provider-assigned unique ID for this managed resource.
    library_key str
    library_managed_instance_usage_collections Sequence[GetFleetLibraryManagedInstancesLibraryManagedInstanceUsageCollection]
    The list of library_managed_instance_usage_collection.
    application_id str
    filters Sequence[GetFleetLibraryManagedInstancesFilter]
    host_name str
    hostname_contains str
    managed_instance_id str
    The OCID of the related managed instance.
    time_end str
    time_start str
    fleetId String
    id String
    The provider-assigned unique ID for this managed resource.
    libraryKey String
    libraryManagedInstanceUsageCollections List<Property Map>
    The list of library_managed_instance_usage_collection.
    applicationId String
    filters List<Property Map>
    hostName String
    hostnameContains String
    managedInstanceId String
    The OCID of the related managed instance.
    timeEnd String
    timeStart String

    Supporting Types

    GetFleetLibraryManagedInstancesFilter

    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

    GetFleetLibraryManagedInstancesLibraryManagedInstanceUsageCollection

    items List<Property Map>
    A list of LibraryManagedInstanceUsageSummaries.

    GetFleetLibraryManagedInstancesLibraryManagedInstanceUsageCollectionItem

    ApplicationCount int
    The count of applications where the specified library was detected.
    FirstSeenInClasspath string
    The timestamp of the first time the specified library was detected in classpath.
    Hostname string
    The hostname of the managed instance.
    LastDetectedDynamically string
    The date and time a library or Java package was last detected in a dynamic library scan.
    LastSeenInClasspath string
    The timestamp of the last time the specified library was detected in classpath.
    ManagedInstanceId string
    The Fleet-unique identifier of the managed instance.
    ApplicationCount int
    The count of applications where the specified library was detected.
    FirstSeenInClasspath string
    The timestamp of the first time the specified library was detected in classpath.
    Hostname string
    The hostname of the managed instance.
    LastDetectedDynamically string
    The date and time a library or Java package was last detected in a dynamic library scan.
    LastSeenInClasspath string
    The timestamp of the last time the specified library was detected in classpath.
    ManagedInstanceId string
    The Fleet-unique identifier of the managed instance.
    applicationCount Integer
    The count of applications where the specified library was detected.
    firstSeenInClasspath String
    The timestamp of the first time the specified library was detected in classpath.
    hostname String
    The hostname of the managed instance.
    lastDetectedDynamically String
    The date and time a library or Java package was last detected in a dynamic library scan.
    lastSeenInClasspath String
    The timestamp of the last time the specified library was detected in classpath.
    managedInstanceId String
    The Fleet-unique identifier of the managed instance.
    applicationCount number
    The count of applications where the specified library was detected.
    firstSeenInClasspath string
    The timestamp of the first time the specified library was detected in classpath.
    hostname string
    The hostname of the managed instance.
    lastDetectedDynamically string
    The date and time a library or Java package was last detected in a dynamic library scan.
    lastSeenInClasspath string
    The timestamp of the last time the specified library was detected in classpath.
    managedInstanceId string
    The Fleet-unique identifier of the managed instance.
    application_count int
    The count of applications where the specified library was detected.
    first_seen_in_classpath str
    The timestamp of the first time the specified library was detected in classpath.
    hostname str
    The hostname of the managed instance.
    last_detected_dynamically str
    The date and time a library or Java package was last detected in a dynamic library scan.
    last_seen_in_classpath str
    The timestamp of the last time the specified library was detected in classpath.
    managed_instance_id str
    The Fleet-unique identifier of the managed instance.
    applicationCount Number
    The count of applications where the specified library was detected.
    firstSeenInClasspath String
    The timestamp of the first time the specified library was detected in classpath.
    hostname String
    The hostname of the managed instance.
    lastDetectedDynamically String
    The date and time a library or Java package was last detected in a dynamic library scan.
    lastSeenInClasspath String
    The timestamp of the last time the specified library was detected in classpath.
    managedInstanceId String
    The Fleet-unique identifier of the managed instance.

    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 v3.9.0 published on Wednesday, Sep 24, 2025 by Pulumi
      Meet Neo: Your AI Platform Teammate