1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Jms
  5. getListJreUsage
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

oci.Jms.getListJreUsage

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

    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)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:Jms/getListJreUsage:getListJreUsage
      arguments:
        # arguments dictionary

    The 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<GetListJreUsageItem>
    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 []GetListJreUsageItem
    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<GetListJreUsageItem>
    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 GetListJreUsageItem[]
    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.GetListJreUsageItem]
    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

    ApproximateApplicationCount int
    The approximate count of the applications running on this Java Runtime.
    ApproximateInstallationCount int
    The approximate count of installations that are installations of this Java Runtime.
    ApproximateManagedInstanceCount int
    The approximate count of the managed instances that report this Java Runtime.
    ApproximatePendingWorkRequestCount int
    The approximate count of work requests working on this Java Runtime.
    DaysUnderSecurityBaseline int
    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.
    EndOfSupportLifeDate string
    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.
    ManagedInstanceId string
    The OCID of the related managed instance. This property value is present only for /listJreUsage.
    OperatingSystems List<GetListJreUsageItemOperatingSystem>
    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).
    TimeFirstSeen string
    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.
    TimeLastSeen string
    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.
    ApproximateApplicationCount int
    The approximate count of the applications running on this Java Runtime.
    ApproximateInstallationCount int
    The approximate count of installations that are installations of this Java Runtime.
    ApproximateManagedInstanceCount int
    The approximate count of the managed instances that report this Java Runtime.
    ApproximatePendingWorkRequestCount int
    The approximate count of work requests working on this Java Runtime.
    DaysUnderSecurityBaseline int
    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.
    EndOfSupportLifeDate string
    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.
    ManagedInstanceId string
    The OCID of the related managed instance. This property value is present only for /listJreUsage.
    OperatingSystems []GetListJreUsageItemOperatingSystem
    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).
    TimeFirstSeen string
    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.
    TimeLastSeen string
    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.
    approximateApplicationCount Integer
    The approximate count of the applications running on this Java Runtime.
    approximateInstallationCount Integer
    The approximate count of installations that are installations of this Java Runtime.
    approximateManagedInstanceCount Integer
    The approximate count of the managed instances that report this Java Runtime.
    approximatePendingWorkRequestCount Integer
    The approximate count of work requests working on this Java Runtime.
    daysUnderSecurityBaseline Integer
    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.
    endOfSupportLifeDate String
    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.
    managedInstanceId String
    The OCID of the related managed instance. This property value is present only for /listJreUsage.
    operatingSystems List<GetListJreUsageItemOperatingSystem>
    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).
    timeFirstSeen String
    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.
    timeLastSeen String
    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.
    approximateApplicationCount number
    The approximate count of the applications running on this Java Runtime.
    approximateInstallationCount number
    The approximate count of installations that are installations of this Java Runtime.
    approximateManagedInstanceCount number
    The approximate count of the managed instances that report this Java Runtime.
    approximatePendingWorkRequestCount number
    The approximate count of work requests working on this Java Runtime.
    daysUnderSecurityBaseline number
    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.
    endOfSupportLifeDate string
    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.
    managedInstanceId string
    The OCID of the related managed instance. This property value is present only for /listJreUsage.
    operatingSystems GetListJreUsageItemOperatingSystem[]
    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).
    timeFirstSeen string
    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.
    timeLastSeen string
    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_count int
    The approximate count of the applications running on this Java Runtime.
    approximate_installation_count int
    The approximate count of installations that are installations of this Java Runtime.
    approximate_managed_instance_count int
    The approximate count of the managed instances that report this Java Runtime.
    approximate_pending_work_request_count int
    The approximate count of work requests working on this Java Runtime.
    days_under_security_baseline int
    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_support_life_date str
    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_id str
    The OCID of the related managed instance. This property value is present only for /listJreUsage.
    operating_systems Sequence[jms.GetListJreUsageItemOperatingSystem]
    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_seen str
    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_seen str
    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.
    approximateApplicationCount Number
    The approximate count of the applications running on this Java Runtime.
    approximateInstallationCount Number
    The approximate count of installations that are installations of this Java Runtime.
    approximateManagedInstanceCount Number
    The approximate count of the managed instances that report this Java Runtime.
    approximatePendingWorkRequestCount Number
    The approximate count of work requests working on this Java Runtime.
    daysUnderSecurityBaseline Number
    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.
    endOfSupportLifeDate String
    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.
    managedInstanceId String
    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).
    timeFirstSeen String
    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.
    timeLastSeen String
    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
    ManagedInstanceCount int
    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
    ManagedInstanceCount int
    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
    managedInstanceCount Integer
    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
    managedInstanceCount number
    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_count int
    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
    managedInstanceCount Number
    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 oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi