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

oci.Jms.getFleetContainers

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 Containers in Oracle Cloud Infrastructure Jms service.

    List containers in a fleet filtered by query parameters.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testFleetContainers = oci.Jms.getFleetContainers({
        fleetId: testFleet.id,
        applicationName: testApplication.name,
        displayName: fleetContainerDisplayName,
        jreSecurityStatus: fleetContainerJreSecurityStatus,
        jreVersion: fleetContainerJreVersion,
        managedInstanceId: testManagedInstance.id,
        timeStartedGreaterThanOrEqualTo: fleetContainerTimeStartedGreaterThanOrEqualTo,
        timeStartedLessThanOrEqualTo: fleetContainerTimeStartedLessThanOrEqualTo,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_fleet_containers = oci.Jms.get_fleet_containers(fleet_id=test_fleet["id"],
        application_name=test_application["name"],
        display_name=fleet_container_display_name,
        jre_security_status=fleet_container_jre_security_status,
        jre_version=fleet_container_jre_version,
        managed_instance_id=test_managed_instance["id"],
        time_started_greater_than_or_equal_to=fleet_container_time_started_greater_than_or_equal_to,
        time_started_less_than_or_equal_to=fleet_container_time_started_less_than_or_equal_to)
    
    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.GetFleetContainers(ctx, &jms.GetFleetContainersArgs{
    			FleetId:                         testFleet.Id,
    			ApplicationName:                 pulumi.StringRef(testApplication.Name),
    			DisplayName:                     pulumi.StringRef(fleetContainerDisplayName),
    			JreSecurityStatus:               pulumi.StringRef(fleetContainerJreSecurityStatus),
    			JreVersion:                      pulumi.StringRef(fleetContainerJreVersion),
    			ManagedInstanceId:               pulumi.StringRef(testManagedInstance.Id),
    			TimeStartedGreaterThanOrEqualTo: pulumi.StringRef(fleetContainerTimeStartedGreaterThanOrEqualTo),
    			TimeStartedLessThanOrEqualTo:    pulumi.StringRef(fleetContainerTimeStartedLessThanOrEqualTo),
    		}, 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 testFleetContainers = Oci.Jms.GetFleetContainers.Invoke(new()
        {
            FleetId = testFleet.Id,
            ApplicationName = testApplication.Name,
            DisplayName = fleetContainerDisplayName,
            JreSecurityStatus = fleetContainerJreSecurityStatus,
            JreVersion = fleetContainerJreVersion,
            ManagedInstanceId = testManagedInstance.Id,
            TimeStartedGreaterThanOrEqualTo = fleetContainerTimeStartedGreaterThanOrEqualTo,
            TimeStartedLessThanOrEqualTo = fleetContainerTimeStartedLessThanOrEqualTo,
        });
    
    });
    
    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.GetFleetContainersArgs;
    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 testFleetContainers = JmsFunctions.getFleetContainers(GetFleetContainersArgs.builder()
                .fleetId(testFleet.id())
                .applicationName(testApplication.name())
                .displayName(fleetContainerDisplayName)
                .jreSecurityStatus(fleetContainerJreSecurityStatus)
                .jreVersion(fleetContainerJreVersion)
                .managedInstanceId(testManagedInstance.id())
                .timeStartedGreaterThanOrEqualTo(fleetContainerTimeStartedGreaterThanOrEqualTo)
                .timeStartedLessThanOrEqualTo(fleetContainerTimeStartedLessThanOrEqualTo)
                .build());
    
        }
    }
    
    variables:
      testFleetContainers:
        fn::invoke:
          function: oci:Jms:getFleetContainers
          arguments:
            fleetId: ${testFleet.id}
            applicationName: ${testApplication.name}
            displayName: ${fleetContainerDisplayName}
            jreSecurityStatus: ${fleetContainerJreSecurityStatus}
            jreVersion: ${fleetContainerJreVersion}
            managedInstanceId: ${testManagedInstance.id}
            timeStartedGreaterThanOrEqualTo: ${fleetContainerTimeStartedGreaterThanOrEqualTo}
            timeStartedLessThanOrEqualTo: ${fleetContainerTimeStartedLessThanOrEqualTo}
    

    Using getFleetContainers

    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 getFleetContainers(args: GetFleetContainersArgs, opts?: InvokeOptions): Promise<GetFleetContainersResult>
    function getFleetContainersOutput(args: GetFleetContainersOutputArgs, opts?: InvokeOptions): Output<GetFleetContainersResult>
    def get_fleet_containers(application_name: Optional[str] = None,
                             display_name: Optional[str] = None,
                             filters: Optional[Sequence[GetFleetContainersFilter]] = None,
                             fleet_id: Optional[str] = None,
                             jre_security_status: Optional[str] = None,
                             jre_version: Optional[str] = None,
                             managed_instance_id: Optional[str] = None,
                             time_started_greater_than_or_equal_to: Optional[str] = None,
                             time_started_less_than_or_equal_to: Optional[str] = None,
                             opts: Optional[InvokeOptions] = None) -> GetFleetContainersResult
    def get_fleet_containers_output(application_name: Optional[pulumi.Input[str]] = None,
                             display_name: Optional[pulumi.Input[str]] = None,
                             filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetFleetContainersFilterArgs]]]] = None,
                             fleet_id: Optional[pulumi.Input[str]] = None,
                             jre_security_status: Optional[pulumi.Input[str]] = None,
                             jre_version: Optional[pulumi.Input[str]] = None,
                             managed_instance_id: Optional[pulumi.Input[str]] = None,
                             time_started_greater_than_or_equal_to: Optional[pulumi.Input[str]] = None,
                             time_started_less_than_or_equal_to: Optional[pulumi.Input[str]] = None,
                             opts: Optional[InvokeOptions] = None) -> Output[GetFleetContainersResult]
    func GetFleetContainers(ctx *Context, args *GetFleetContainersArgs, opts ...InvokeOption) (*GetFleetContainersResult, error)
    func GetFleetContainersOutput(ctx *Context, args *GetFleetContainersOutputArgs, opts ...InvokeOption) GetFleetContainersResultOutput

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

    public static class GetFleetContainers 
    {
        public static Task<GetFleetContainersResult> InvokeAsync(GetFleetContainersArgs args, InvokeOptions? opts = null)
        public static Output<GetFleetContainersResult> Invoke(GetFleetContainersInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetFleetContainersResult> getFleetContainers(GetFleetContainersArgs args, InvokeOptions options)
    public static Output<GetFleetContainersResult> getFleetContainers(GetFleetContainersArgs args, InvokeOptions options)
    
    fn::invoke:
      function: oci:Jms/getFleetContainers:getFleetContainers
      arguments:
        # arguments dictionary

    The following arguments are supported:

    FleetId string
    The OCID of the Fleet.
    ApplicationName string
    The name of the application.
    DisplayName string
    The display name.
    Filters List<GetFleetContainersFilter>
    JreSecurityStatus string
    The security status of the Java Runtime.
    JreVersion string
    The version of the related Java Runtime.
    ManagedInstanceId string
    The Fleet-unique identifier of the managed instance.
    TimeStartedGreaterThanOrEqualTo string
    If specified, only containers with a start time later than or equal to this parameter will be included in the response (formatted according to RFC3339).
    TimeStartedLessThanOrEqualTo string
    If specified, only containers with a start time earlier than or equal to this parameter will be included in the response (formatted according to RFC3339).
    FleetId string
    The OCID of the Fleet.
    ApplicationName string
    The name of the application.
    DisplayName string
    The display name.
    Filters []GetFleetContainersFilter
    JreSecurityStatus string
    The security status of the Java Runtime.
    JreVersion string
    The version of the related Java Runtime.
    ManagedInstanceId string
    The Fleet-unique identifier of the managed instance.
    TimeStartedGreaterThanOrEqualTo string
    If specified, only containers with a start time later than or equal to this parameter will be included in the response (formatted according to RFC3339).
    TimeStartedLessThanOrEqualTo string
    If specified, only containers with a start time earlier than or equal to this parameter will be included in the response (formatted according to RFC3339).
    fleetId String
    The OCID of the Fleet.
    applicationName String
    The name of the application.
    displayName String
    The display name.
    filters List<GetFleetContainersFilter>
    jreSecurityStatus String
    The security status of the Java Runtime.
    jreVersion String
    The version of the related Java Runtime.
    managedInstanceId String
    The Fleet-unique identifier of the managed instance.
    timeStartedGreaterThanOrEqualTo String
    If specified, only containers with a start time later than or equal to this parameter will be included in the response (formatted according to RFC3339).
    timeStartedLessThanOrEqualTo String
    If specified, only containers with a start time earlier than or equal to this parameter will be included in the response (formatted according to RFC3339).
    fleetId string
    The OCID of the Fleet.
    applicationName string
    The name of the application.
    displayName string
    The display name.
    filters GetFleetContainersFilter[]
    jreSecurityStatus string
    The security status of the Java Runtime.
    jreVersion string
    The version of the related Java Runtime.
    managedInstanceId string
    The Fleet-unique identifier of the managed instance.
    timeStartedGreaterThanOrEqualTo string
    If specified, only containers with a start time later than or equal to this parameter will be included in the response (formatted according to RFC3339).
    timeStartedLessThanOrEqualTo string
    If specified, only containers with a start time earlier than or equal to this parameter will be included in the response (formatted according to RFC3339).
    fleet_id str
    The OCID of the Fleet.
    application_name str
    The name of the application.
    display_name str
    The display name.
    filters Sequence[GetFleetContainersFilter]
    jre_security_status str
    The security status of the Java Runtime.
    jre_version str
    The version of the related Java Runtime.
    managed_instance_id str
    The Fleet-unique identifier of the managed instance.
    time_started_greater_than_or_equal_to str
    If specified, only containers with a start time later than or equal to this parameter will be included in the response (formatted according to RFC3339).
    time_started_less_than_or_equal_to str
    If specified, only containers with a start time earlier than or equal to this parameter will be included in the response (formatted according to RFC3339).
    fleetId String
    The OCID of the Fleet.
    applicationName String
    The name of the application.
    displayName String
    The display name.
    filters List<Property Map>
    jreSecurityStatus String
    The security status of the Java Runtime.
    jreVersion String
    The version of the related Java Runtime.
    managedInstanceId String
    The Fleet-unique identifier of the managed instance.
    timeStartedGreaterThanOrEqualTo String
    If specified, only containers with a start time later than or equal to this parameter will be included in the response (formatted according to RFC3339).
    timeStartedLessThanOrEqualTo String
    If specified, only containers with a start time earlier than or equal to this parameter will be included in the response (formatted according to RFC3339).

    getFleetContainers Result

    The following output properties are available:

    ContainerCollections List<GetFleetContainersContainerCollection>
    The list of container_collection.
    FleetId string
    Id string
    The provider-assigned unique ID for this managed resource.
    ApplicationName string
    The name of the application running in the container.
    DisplayName string
    The name of the container.
    Filters List<GetFleetContainersFilter>
    JreSecurityStatus string
    The security status of the Java runtime used to run the application in the container.
    JreVersion string
    ManagedInstanceId string
    The OCID of the associated managed instance of type OCMA.
    TimeStartedGreaterThanOrEqualTo string
    TimeStartedLessThanOrEqualTo string
    ContainerCollections []GetFleetContainersContainerCollection
    The list of container_collection.
    FleetId string
    Id string
    The provider-assigned unique ID for this managed resource.
    ApplicationName string
    The name of the application running in the container.
    DisplayName string
    The name of the container.
    Filters []GetFleetContainersFilter
    JreSecurityStatus string
    The security status of the Java runtime used to run the application in the container.
    JreVersion string
    ManagedInstanceId string
    The OCID of the associated managed instance of type OCMA.
    TimeStartedGreaterThanOrEqualTo string
    TimeStartedLessThanOrEqualTo string
    containerCollections List<GetFleetContainersContainerCollection>
    The list of container_collection.
    fleetId String
    id String
    The provider-assigned unique ID for this managed resource.
    applicationName String
    The name of the application running in the container.
    displayName String
    The name of the container.
    filters List<GetFleetContainersFilter>
    jreSecurityStatus String
    The security status of the Java runtime used to run the application in the container.
    jreVersion String
    managedInstanceId String
    The OCID of the associated managed instance of type OCMA.
    timeStartedGreaterThanOrEqualTo String
    timeStartedLessThanOrEqualTo String
    containerCollections GetFleetContainersContainerCollection[]
    The list of container_collection.
    fleetId string
    id string
    The provider-assigned unique ID for this managed resource.
    applicationName string
    The name of the application running in the container.
    displayName string
    The name of the container.
    filters GetFleetContainersFilter[]
    jreSecurityStatus string
    The security status of the Java runtime used to run the application in the container.
    jreVersion string
    managedInstanceId string
    The OCID of the associated managed instance of type OCMA.
    timeStartedGreaterThanOrEqualTo string
    timeStartedLessThanOrEqualTo string
    container_collections Sequence[GetFleetContainersContainerCollection]
    The list of container_collection.
    fleet_id str
    id str
    The provider-assigned unique ID for this managed resource.
    application_name str
    The name of the application running in the container.
    display_name str
    The name of the container.
    filters Sequence[GetFleetContainersFilter]
    jre_security_status str
    The security status of the Java runtime used to run the application in the container.
    jre_version str
    managed_instance_id str
    The OCID of the associated managed instance of type OCMA.
    time_started_greater_than_or_equal_to str
    time_started_less_than_or_equal_to str
    containerCollections List<Property Map>
    The list of container_collection.
    fleetId String
    id String
    The provider-assigned unique ID for this managed resource.
    applicationName String
    The name of the application running in the container.
    displayName String
    The name of the container.
    filters List<Property Map>
    jreSecurityStatus String
    The security status of the Java runtime used to run the application in the container.
    jreVersion String
    managedInstanceId String
    The OCID of the associated managed instance of type OCMA.
    timeStartedGreaterThanOrEqualTo String
    timeStartedLessThanOrEqualTo String

    Supporting Types

    GetFleetContainersContainerCollection

    Items List<GetFleetContainersContainerCollectionItem>
    A list of the container summaries.
    Items []GetFleetContainersContainerCollectionItem
    A list of the container summaries.
    items List<GetFleetContainersContainerCollectionItem>
    A list of the container summaries.
    items GetFleetContainersContainerCollectionItem[]
    A list of the container summaries.
    items List<Property Map>
    A list of the container summaries.

    GetFleetContainersContainerCollectionItem

    ApplicationKey string
    Unique key that identifies the application running in the container.
    ApplicationName string
    The name of the application.
    ContainerKey string
    Unique identifier for the container.
    DisplayName string
    The display name.
    ImageName string
    The container image name.
    JavaVersion string
    The Java runtime used to run the application in the container.
    JreKey string
    Unique key that identifies the Java runtime used to run the application in the container.
    JreSecurityStatus string
    The security status of the Java Runtime.
    ManagedInstanceId string
    The Fleet-unique identifier of the managed instance.
    Namespace string
    The namespace of the container.
    NodeName string
    The name of the node associated with the pod running this container.
    PodName string
    The name of the pod running this container.
    TimeStarted string
    The start time of the container.
    ApplicationKey string
    Unique key that identifies the application running in the container.
    ApplicationName string
    The name of the application.
    ContainerKey string
    Unique identifier for the container.
    DisplayName string
    The display name.
    ImageName string
    The container image name.
    JavaVersion string
    The Java runtime used to run the application in the container.
    JreKey string
    Unique key that identifies the Java runtime used to run the application in the container.
    JreSecurityStatus string
    The security status of the Java Runtime.
    ManagedInstanceId string
    The Fleet-unique identifier of the managed instance.
    Namespace string
    The namespace of the container.
    NodeName string
    The name of the node associated with the pod running this container.
    PodName string
    The name of the pod running this container.
    TimeStarted string
    The start time of the container.
    applicationKey String
    Unique key that identifies the application running in the container.
    applicationName String
    The name of the application.
    containerKey String
    Unique identifier for the container.
    displayName String
    The display name.
    imageName String
    The container image name.
    javaVersion String
    The Java runtime used to run the application in the container.
    jreKey String
    Unique key that identifies the Java runtime used to run the application in the container.
    jreSecurityStatus String
    The security status of the Java Runtime.
    managedInstanceId String
    The Fleet-unique identifier of the managed instance.
    namespace String
    The namespace of the container.
    nodeName String
    The name of the node associated with the pod running this container.
    podName String
    The name of the pod running this container.
    timeStarted String
    The start time of the container.
    applicationKey string
    Unique key that identifies the application running in the container.
    applicationName string
    The name of the application.
    containerKey string
    Unique identifier for the container.
    displayName string
    The display name.
    imageName string
    The container image name.
    javaVersion string
    The Java runtime used to run the application in the container.
    jreKey string
    Unique key that identifies the Java runtime used to run the application in the container.
    jreSecurityStatus string
    The security status of the Java Runtime.
    managedInstanceId string
    The Fleet-unique identifier of the managed instance.
    namespace string
    The namespace of the container.
    nodeName string
    The name of the node associated with the pod running this container.
    podName string
    The name of the pod running this container.
    timeStarted string
    The start time of the container.
    application_key str
    Unique key that identifies the application running in the container.
    application_name str
    The name of the application.
    container_key str
    Unique identifier for the container.
    display_name str
    The display name.
    image_name str
    The container image name.
    java_version str
    The Java runtime used to run the application in the container.
    jre_key str
    Unique key that identifies the Java runtime used to run the application in the container.
    jre_security_status str
    The security status of the Java Runtime.
    managed_instance_id str
    The Fleet-unique identifier of the managed instance.
    namespace str
    The namespace of the container.
    node_name str
    The name of the node associated with the pod running this container.
    pod_name str
    The name of the pod running this container.
    time_started str
    The start time of the container.
    applicationKey String
    Unique key that identifies the application running in the container.
    applicationName String
    The name of the application.
    containerKey String
    Unique identifier for the container.
    displayName String
    The display name.
    imageName String
    The container image name.
    javaVersion String
    The Java runtime used to run the application in the container.
    jreKey String
    Unique key that identifies the Java runtime used to run the application in the container.
    jreSecurityStatus String
    The security status of the Java Runtime.
    managedInstanceId String
    The Fleet-unique identifier of the managed instance.
    namespace String
    The namespace of the container.
    nodeName String
    The name of the node associated with the pod running this container.
    podName String
    The name of the pod running this container.
    timeStarted String
    The start time of the container.

    GetFleetContainersFilter

    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

    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