Oracle Cloud Infrastructure v2.27.0 published on Thursday, Mar 20, 2025 by Pulumi
oci.Jms.getListJreUsage
Explore with Pulumi AI
This data source provides details about a specific List Jre Usage resource in Oracle Cloud Infrastructure Jms service.
List Java Runtime usage in a specified host filtered by query parameters.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testListJreUsage = oci.Jms.getListJreUsage({
    applicationId: testApplication.id,
    applicationName: testApplication.name,
    compartmentId: compartmentId,
    hostId: testHost.id,
    timeEnd: listJreUsageTimeEnd,
    timeStart: listJreUsageTimeStart,
});
import pulumi
import pulumi_oci as oci
test_list_jre_usage = oci.Jms.get_list_jre_usage(application_id=test_application["id"],
    application_name=test_application["name"],
    compartment_id=compartment_id,
    host_id=test_host["id"],
    time_end=list_jre_usage_time_end,
    time_start=list_jre_usage_time_start)
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.GetListJreUsage(ctx, &jms.GetListJreUsageArgs{
			ApplicationId:   pulumi.StringRef(testApplication.Id),
			ApplicationName: pulumi.StringRef(testApplication.Name),
			CompartmentId:   pulumi.StringRef(compartmentId),
			HostId:          pulumi.StringRef(testHost.Id),
			TimeEnd:         pulumi.StringRef(listJreUsageTimeEnd),
			TimeStart:       pulumi.StringRef(listJreUsageTimeStart),
		}, 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 testListJreUsage = Oci.Jms.GetListJreUsage.Invoke(new()
    {
        ApplicationId = testApplication.Id,
        ApplicationName = testApplication.Name,
        CompartmentId = compartmentId,
        HostId = testHost.Id,
        TimeEnd = listJreUsageTimeEnd,
        TimeStart = listJreUsageTimeStart,
    });
});
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.GetListJreUsageArgs;
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 testListJreUsage = JmsFunctions.getListJreUsage(GetListJreUsageArgs.builder()
            .applicationId(testApplication.id())
            .applicationName(testApplication.name())
            .compartmentId(compartmentId)
            .hostId(testHost.id())
            .timeEnd(listJreUsageTimeEnd)
            .timeStart(listJreUsageTimeStart)
            .build());
    }
}
variables:
  testListJreUsage:
    fn::invoke:
      function: oci:Jms:getListJreUsage
      arguments:
        applicationId: ${testApplication.id}
        applicationName: ${testApplication.name}
        compartmentId: ${compartmentId}
        hostId: ${testHost.id}
        timeEnd: ${listJreUsageTimeEnd}
        timeStart: ${listJreUsageTimeStart}
Using getListJreUsage
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 getListJreUsage(args: GetListJreUsageArgs, opts?: InvokeOptions): Promise<GetListJreUsageResult>
function getListJreUsageOutput(args: GetListJreUsageOutputArgs, opts?: InvokeOptions): Output<GetListJreUsageResult>def get_list_jre_usage(application_id: Optional[str] = None,
                       application_name: Optional[str] = None,
                       compartment_id: Optional[str] = None,
                       host_id: Optional[str] = None,
                       time_end: Optional[str] = None,
                       time_start: Optional[str] = None,
                       opts: Optional[InvokeOptions] = None) -> GetListJreUsageResult
def get_list_jre_usage_output(application_id: Optional[pulumi.Input[str]] = None,
                       application_name: Optional[pulumi.Input[str]] = None,
                       compartment_id: Optional[pulumi.Input[str]] = None,
                       host_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[GetListJreUsageResult]func GetListJreUsage(ctx *Context, args *GetListJreUsageArgs, opts ...InvokeOption) (*GetListJreUsageResult, error)
func GetListJreUsageOutput(ctx *Context, args *GetListJreUsageOutputArgs, opts ...InvokeOption) GetListJreUsageResultOutput> Note: This function is named GetListJreUsage in the Go SDK.
public static class GetListJreUsage 
{
    public static Task<GetListJreUsageResult> InvokeAsync(GetListJreUsageArgs args, InvokeOptions? opts = null)
    public static Output<GetListJreUsageResult> Invoke(GetListJreUsageInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetListJreUsageResult> getListJreUsage(GetListJreUsageArgs args, InvokeOptions options)
public static Output<GetListJreUsageResult> getListJreUsage(GetListJreUsageArgs args, InvokeOptions options)
fn::invoke:
  function: oci:Jms/getListJreUsage:getListJreUsage
  arguments:
    # arguments dictionaryThe following arguments are supported:
- ApplicationId string
- The Fleet-unique identifier of the application.
- ApplicationName string
- The name of the application.
- CompartmentId string
- The OCID of the compartment in which to list resources.
- HostId string
- The host OCID 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).
- ApplicationId string
- The Fleet-unique identifier of the application.
- ApplicationName string
- The name of the application.
- CompartmentId string
- The OCID of the compartment in which to list resources.
- HostId string
- The host OCID 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).
- applicationId String
- The Fleet-unique identifier of the application.
- applicationName String
- The name of the application.
- compartmentId String
- The OCID of the compartment in which to list resources.
- hostId String
- The host OCID 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).
- applicationId string
- The Fleet-unique identifier of the application.
- applicationName string
- The name of the application.
- compartmentId string
- The OCID of the compartment in which to list resources.
- hostId string
- The host OCID 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).
- application_id str
- The Fleet-unique identifier of the application.
- application_name str
- The name of the application.
- compartment_id str
- The OCID of the compartment in which to list resources.
- host_id str
- The host OCID 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).
- applicationId String
- The Fleet-unique identifier of the application.
- applicationName String
- The name of the application.
- compartmentId String
- The OCID of the compartment in which to list resources.
- hostId String
- The host OCID 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).
getListJreUsage Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Items
List<GetList Jre Usage Item> 
- A list of Java Runtimes.
- ApplicationId string
- ApplicationName string
- CompartmentId string
- HostId string
- TimeEnd string
- Upper bound of the specified time period filter. JMS provides a view of the data that is per day. The query uses only the date element of the parameter.
- TimeStart string
- Lower bound of the specified time period filter. JMS provides a view of the data that is per day. The query uses only the date element of the parameter.
- Id string
- The provider-assigned unique ID for this managed resource.
- Items
[]GetList Jre Usage Item 
- A list of Java Runtimes.
- ApplicationId string
- ApplicationName string
- CompartmentId string
- HostId string
- TimeEnd string
- Upper bound of the specified time period filter. JMS provides a view of the data that is per day. The query uses only the date element of the parameter.
- TimeStart string
- Lower bound of the specified time period filter. JMS provides a view of the data that is per day. The query uses only the date element of the parameter.
- id String
- The provider-assigned unique ID for this managed resource.
- items
List<GetList Jre Usage Item> 
- A list of Java Runtimes.
- applicationId String
- applicationName String
- compartmentId String
- hostId String
- timeEnd String
- Upper bound of the specified time period filter. JMS provides a view of the data that is per day. The query uses only the date element of the parameter.
- timeStart String
- Lower bound of the specified time period filter. JMS provides a view of the data that is per day. The query uses only the date element of the parameter.
- id string
- The provider-assigned unique ID for this managed resource.
- items
GetList Jre Usage Item[] 
- A list of Java Runtimes.
- applicationId string
- applicationName string
- compartmentId string
- hostId string
- timeEnd string
- Upper bound of the specified time period filter. JMS provides a view of the data that is per day. The query uses only the date element of the parameter.
- timeStart string
- Lower bound of the specified time period filter. JMS provides a view of the data that is per day. The query uses only the date element of the parameter.
- id str
- The provider-assigned unique ID for this managed resource.
- items
Sequence[jms.Get List Jre Usage Item] 
- A list of Java Runtimes.
- application_id str
- application_name str
- compartment_id str
- host_id str
- time_end str
- Upper bound of the specified time period filter. JMS provides a view of the data that is per day. The query uses only the date element of the parameter.
- time_start str
- Lower bound of the specified time period filter. JMS provides a view of the data that is per day. The query uses only the date element of the parameter.
- id String
- The provider-assigned unique ID for this managed resource.
- items List<Property Map>
- A list of Java Runtimes.
- applicationId String
- applicationName String
- compartmentId String
- hostId String
- timeEnd String
- Upper bound of the specified time period filter. JMS provides a view of the data that is per day. The query uses only the date element of the parameter.
- timeStart String
- Lower bound of the specified time period filter. JMS provides a view of the data that is per day. The query uses only the date element of the parameter.
Supporting Types
GetListJreUsageItem    
- ApproximateApplication intCount 
- The approximate count of the applications running on this Java Runtime.
- ApproximateInstallation intCount 
- The approximate count of installations that are installations of this Java Runtime.
- ApproximateManaged intInstance Count 
- The approximate count of the managed instances that report this Java Runtime.
- ApproximatePending intWork Request Count 
- The approximate count of work requests working on this Java Runtime.
- DaysUnder intSecurity Baseline 
- The number of days since this release has been under the security baseline.
- Distribution string
- The distribution of a Java Runtime is the name of the lineage of product to which it belongs, for example Java(TM) SE Runtime Environment.
- EndOf stringSupport Life Date 
- The End of Support Life (EOSL) date of the Java Runtime (formatted according to RFC3339).
- FleetId string
- The OCID of the related fleet.
- Id string
- The internal identifier of the Java Runtime.
- ManagedInstance stringId 
- The OCID of the related managed instance. This property value is present only for /listJreUsage.
- OperatingSystems List<GetList Jre Usage Item Operating System> 
- The operating systems that have this Java Runtime installed.
- ReleaseDate string
- The release date of the Java Runtime (formatted according to RFC3339).
- SecurityStatus string
- The security status of the Java Runtime.
- TimeEnd string
- The end of the time period during which resources are searched (formatted according to RFC3339).
- TimeFirst stringSeen 
- The date and time the resource was first reported to JMS. This is potentially before the specified time period provided by the filters. For example, a resource can be first reported to JMS before the start of a specified time period, if it is also reported during the time period.
- TimeLast stringSeen 
- The date and time the resource was last reported to JMS. This is potentially after the specified time period provided by the filters. For example, a resource can be last reported to JMS before the start of a specified time period, if it is also reported during the time period.
- TimeStart string
- The start of the time period during which resources are searched (formatted according to RFC3339).
- Vendor string
- The vendor of the Java Runtime.
- Version string
- The version of the Java Runtime.
- ApproximateApplication intCount 
- The approximate count of the applications running on this Java Runtime.
- ApproximateInstallation intCount 
- The approximate count of installations that are installations of this Java Runtime.
- ApproximateManaged intInstance Count 
- The approximate count of the managed instances that report this Java Runtime.
- ApproximatePending intWork Request Count 
- The approximate count of work requests working on this Java Runtime.
- DaysUnder intSecurity Baseline 
- The number of days since this release has been under the security baseline.
- Distribution string
- The distribution of a Java Runtime is the name of the lineage of product to which it belongs, for example Java(TM) SE Runtime Environment.
- EndOf stringSupport Life Date 
- The End of Support Life (EOSL) date of the Java Runtime (formatted according to RFC3339).
- FleetId string
- The OCID of the related fleet.
- Id string
- The internal identifier of the Java Runtime.
- ManagedInstance stringId 
- The OCID of the related managed instance. This property value is present only for /listJreUsage.
- OperatingSystems []GetList Jre Usage Item Operating System 
- The operating systems that have this Java Runtime installed.
- ReleaseDate string
- The release date of the Java Runtime (formatted according to RFC3339).
- SecurityStatus string
- The security status of the Java Runtime.
- TimeEnd string
- The end of the time period during which resources are searched (formatted according to RFC3339).
- TimeFirst stringSeen 
- The date and time the resource was first reported to JMS. This is potentially before the specified time period provided by the filters. For example, a resource can be first reported to JMS before the start of a specified time period, if it is also reported during the time period.
- TimeLast stringSeen 
- The date and time the resource was last reported to JMS. This is potentially after the specified time period provided by the filters. For example, a resource can be last reported to JMS before the start of a specified time period, if it is also reported during the time period.
- TimeStart string
- The start of the time period during which resources are searched (formatted according to RFC3339).
- Vendor string
- The vendor of the Java Runtime.
- Version string
- The version of the Java Runtime.
- approximateApplication IntegerCount 
- The approximate count of the applications running on this Java Runtime.
- approximateInstallation IntegerCount 
- The approximate count of installations that are installations of this Java Runtime.
- approximateManaged IntegerInstance Count 
- The approximate count of the managed instances that report this Java Runtime.
- approximatePending IntegerWork Request Count 
- The approximate count of work requests working on this Java Runtime.
- daysUnder IntegerSecurity Baseline 
- The number of days since this release has been under the security baseline.
- distribution String
- The distribution of a Java Runtime is the name of the lineage of product to which it belongs, for example Java(TM) SE Runtime Environment.
- endOf StringSupport Life Date 
- The End of Support Life (EOSL) date of the Java Runtime (formatted according to RFC3339).
- fleetId String
- The OCID of the related fleet.
- id String
- The internal identifier of the Java Runtime.
- managedInstance StringId 
- The OCID of the related managed instance. This property value is present only for /listJreUsage.
- operatingSystems List<GetList Jre Usage Item Operating System> 
- The operating systems that have this Java Runtime installed.
- releaseDate String
- The release date of the Java Runtime (formatted according to RFC3339).
- securityStatus String
- The security status of the Java Runtime.
- timeEnd String
- The end of the time period during which resources are searched (formatted according to RFC3339).
- timeFirst StringSeen 
- The date and time the resource was first reported to JMS. This is potentially before the specified time period provided by the filters. For example, a resource can be first reported to JMS before the start of a specified time period, if it is also reported during the time period.
- timeLast StringSeen 
- The date and time the resource was last reported to JMS. This is potentially after the specified time period provided by the filters. For example, a resource can be last reported to JMS before the start of a specified time period, if it is also reported during the time period.
- timeStart String
- The start of the time period during which resources are searched (formatted according to RFC3339).
- vendor String
- The vendor of the Java Runtime.
- version String
- The version of the Java Runtime.
- approximateApplication numberCount 
- The approximate count of the applications running on this Java Runtime.
- approximateInstallation numberCount 
- The approximate count of installations that are installations of this Java Runtime.
- approximateManaged numberInstance Count 
- The approximate count of the managed instances that report this Java Runtime.
- approximatePending numberWork Request Count 
- The approximate count of work requests working on this Java Runtime.
- daysUnder numberSecurity Baseline 
- The number of days since this release has been under the security baseline.
- distribution string
- The distribution of a Java Runtime is the name of the lineage of product to which it belongs, for example Java(TM) SE Runtime Environment.
- endOf stringSupport Life Date 
- The End of Support Life (EOSL) date of the Java Runtime (formatted according to RFC3339).
- fleetId string
- The OCID of the related fleet.
- id string
- The internal identifier of the Java Runtime.
- managedInstance stringId 
- The OCID of the related managed instance. This property value is present only for /listJreUsage.
- operatingSystems GetList Jre Usage Item Operating System[] 
- The operating systems that have this Java Runtime installed.
- releaseDate string
- The release date of the Java Runtime (formatted according to RFC3339).
- securityStatus string
- The security status of the Java Runtime.
- timeEnd string
- The end of the time period during which resources are searched (formatted according to RFC3339).
- timeFirst stringSeen 
- The date and time the resource was first reported to JMS. This is potentially before the specified time period provided by the filters. For example, a resource can be first reported to JMS before the start of a specified time period, if it is also reported during the time period.
- timeLast stringSeen 
- The date and time the resource was last reported to JMS. This is potentially after the specified time period provided by the filters. For example, a resource can be last reported to JMS before the start of a specified time period, if it is also reported during the time period.
- timeStart string
- The start of the time period during which resources are searched (formatted according to RFC3339).
- vendor string
- The vendor of the Java Runtime.
- version string
- The version of the Java Runtime.
- approximate_application_ intcount 
- The approximate count of the applications running on this Java Runtime.
- approximate_installation_ intcount 
- The approximate count of installations that are installations of this Java Runtime.
- approximate_managed_ intinstance_ count 
- The approximate count of the managed instances that report this Java Runtime.
- approximate_pending_ intwork_ request_ count 
- The approximate count of work requests working on this Java Runtime.
- days_under_ intsecurity_ baseline 
- The number of days since this release has been under the security baseline.
- distribution str
- The distribution of a Java Runtime is the name of the lineage of product to which it belongs, for example Java(TM) SE Runtime Environment.
- end_of_ strsupport_ life_ date 
- The End of Support Life (EOSL) date of the Java Runtime (formatted according to RFC3339).
- fleet_id str
- The OCID of the related fleet.
- id str
- The internal identifier of the Java Runtime.
- managed_instance_ strid 
- The OCID of the related managed instance. This property value is present only for /listJreUsage.
- operating_systems Sequence[jms.Get List Jre Usage Item Operating System] 
- The operating systems that have this Java Runtime installed.
- release_date str
- The release date of the Java Runtime (formatted according to RFC3339).
- security_status str
- The security status of the Java Runtime.
- time_end str
- The end of the time period during which resources are searched (formatted according to RFC3339).
- time_first_ strseen 
- The date and time the resource was first reported to JMS. This is potentially before the specified time period provided by the filters. For example, a resource can be first reported to JMS before the start of a specified time period, if it is also reported during the time period.
- time_last_ strseen 
- The date and time the resource was last reported to JMS. This is potentially after the specified time period provided by the filters. For example, a resource can be last reported to JMS before the start of a specified time period, if it is also reported during the time period.
- time_start str
- The start of the time period during which resources are searched (formatted according to RFC3339).
- vendor str
- The vendor of the Java Runtime.
- version str
- The version of the Java Runtime.
- approximateApplication NumberCount 
- The approximate count of the applications running on this Java Runtime.
- approximateInstallation NumberCount 
- The approximate count of installations that are installations of this Java Runtime.
- approximateManaged NumberInstance Count 
- The approximate count of the managed instances that report this Java Runtime.
- approximatePending NumberWork Request Count 
- The approximate count of work requests working on this Java Runtime.
- daysUnder NumberSecurity Baseline 
- The number of days since this release has been under the security baseline.
- distribution String
- The distribution of a Java Runtime is the name of the lineage of product to which it belongs, for example Java(TM) SE Runtime Environment.
- endOf StringSupport Life Date 
- The End of Support Life (EOSL) date of the Java Runtime (formatted according to RFC3339).
- fleetId String
- The OCID of the related fleet.
- id String
- The internal identifier of the Java Runtime.
- managedInstance StringId 
- The OCID of the related managed instance. This property value is present only for /listJreUsage.
- operatingSystems List<Property Map>
- The operating systems that have this Java Runtime installed.
- releaseDate String
- The release date of the Java Runtime (formatted according to RFC3339).
- securityStatus String
- The security status of the Java Runtime.
- timeEnd String
- The end of the time period during which resources are searched (formatted according to RFC3339).
- timeFirst StringSeen 
- The date and time the resource was first reported to JMS. This is potentially before the specified time period provided by the filters. For example, a resource can be first reported to JMS before the start of a specified time period, if it is also reported during the time period.
- timeLast StringSeen 
- The date and time the resource was last reported to JMS. This is potentially after the specified time period provided by the filters. For example, a resource can be last reported to JMS before the start of a specified time period, if it is also reported during the time period.
- timeStart String
- The start of the time period during which resources are searched (formatted according to RFC3339).
- vendor String
- The vendor of the Java Runtime.
- version String
- The version of the Java Runtime.
GetListJreUsageItemOperatingSystem      
- Architecture string
- The architecture of the operating system as provided by the Java system property os.arch.
- Family string
- The operating system type, such as Windows or Linux
- ManagedInstance intCount 
- Number of instances running the operating system
- Name string
- The name of the operating system as provided by the Java system property os.name.
- Version string
- The version of the Java Runtime.
- Architecture string
- The architecture of the operating system as provided by the Java system property os.arch.
- Family string
- The operating system type, such as Windows or Linux
- ManagedInstance intCount 
- Number of instances running the operating system
- Name string
- The name of the operating system as provided by the Java system property os.name.
- Version string
- The version of the Java Runtime.
- architecture String
- The architecture of the operating system as provided by the Java system property os.arch.
- family String
- The operating system type, such as Windows or Linux
- managedInstance IntegerCount 
- Number of instances running the operating system
- name String
- The name of the operating system as provided by the Java system property os.name.
- version String
- The version of the Java Runtime.
- architecture string
- The architecture of the operating system as provided by the Java system property os.arch.
- family string
- The operating system type, such as Windows or Linux
- managedInstance numberCount 
- Number of instances running the operating system
- name string
- The name of the operating system as provided by the Java system property os.name.
- version string
- The version of the Java Runtime.
- architecture str
- The architecture of the operating system as provided by the Java system property os.arch.
- family str
- The operating system type, such as Windows or Linux
- managed_instance_ intcount 
- Number of instances running the operating system
- name str
- The name of the operating system as provided by the Java system property os.name.
- version str
- The version of the Java Runtime.
- architecture String
- The architecture of the operating system as provided by the Java system property os.arch.
- family String
- The operating system type, such as Windows or Linux
- managedInstance NumberCount 
- Number of instances running the operating system
- name String
- The name of the operating system as provided by the Java system property os.name.
- version String
- The version of the Java Runtime.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.