Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 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)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:Jms/getListJreUsage:getListJreUsage
arguments:
# arguments dictionary
The following arguments are supported:
- Application
Id string - The Fleet-unique identifier of the application.
- Application
Name string - The name of the application.
- Compartment
Id string - The OCID of the compartment in which to list resources.
- Host
Id string - The host OCID of the managed instance.
- Time
End string - The end of the time period during which resources are searched (formatted according to RFC3339).
- Time
Start string - The start of the time period during which resources are searched (formatted according to RFC3339).
- Application
Id string - The Fleet-unique identifier of the application.
- Application
Name string - The name of the application.
- Compartment
Id string - The OCID of the compartment in which to list resources.
- Host
Id string - The host OCID of the managed instance.
- Time
End string - The end of the time period during which resources are searched (formatted according to RFC3339).
- Time
Start string - The start of the time period during which resources are searched (formatted according to RFC3339).
- application
Id String - The Fleet-unique identifier of the application.
- application
Name String - The name of the application.
- compartment
Id String - The OCID of the compartment in which to list resources.
- host
Id String - The host OCID of the managed instance.
- time
End String - The end of the time period during which resources are searched (formatted according to RFC3339).
- time
Start String - The start of the time period during which resources are searched (formatted according to RFC3339).
- application
Id string - The Fleet-unique identifier of the application.
- application
Name string - The name of the application.
- compartment
Id string - The OCID of the compartment in which to list resources.
- host
Id string - The host OCID of the managed instance.
- time
End string - The end of the time period during which resources are searched (formatted according to RFC3339).
- time
Start 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).
- application
Id String - The Fleet-unique identifier of the application.
- application
Name String - The name of the application.
- compartment
Id String - The OCID of the compartment in which to list resources.
- host
Id String - The host OCID of the managed instance.
- time
End String - The end of the time period during which resources are searched (formatted according to RFC3339).
- time
Start 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<Get
List Jre Usage Item> - A list of Java Runtimes.
- Application
Id string - Application
Name string - Compartment
Id string - Host
Id string - Time
End 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.
- Time
Start 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
[]Get
List Jre Usage Item - A list of Java Runtimes.
- Application
Id string - Application
Name string - Compartment
Id string - Host
Id string - Time
End 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.
- Time
Start 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<Get
List Jre Usage Item> - A list of Java Runtimes.
- application
Id String - application
Name String - compartment
Id String - host
Id String - time
End 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.
- time
Start 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
Get
List Jre Usage Item[] - A list of Java Runtimes.
- application
Id string - application
Name string - compartment
Id string - host
Id string - time
End 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.
- time
Start 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.
- application
Id String - application
Name String - compartment
Id String - host
Id String - time
End 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.
- time
Start 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
- 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 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.
- End
Of stringSupport Life Date - The End of Support Life (EOSL) date of the Java Runtime (formatted according to RFC3339).
- Fleet
Id string - The OCID of the related fleet.
- Id string
- The internal identifier of the Java Runtime.
- Managed
Instance stringId - The OCID of the related managed instance. This property value is present only for /listJreUsage.
- Operating
Systems List<GetList Jre Usage Item Operating System> - The operating systems that have this Java Runtime installed.
- Release
Date string - The release date of the Java Runtime (formatted according to RFC3339).
- Security
Status string - The security status of the Java Runtime.
- Time
End string - The end of the time period during which resources are searched (formatted according to RFC3339).
- Time
First 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.
- Time
Last 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.
- Time
Start 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 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.
- End
Of stringSupport Life Date - The End of Support Life (EOSL) date of the Java Runtime (formatted according to RFC3339).
- Fleet
Id string - The OCID of the related fleet.
- Id string
- The internal identifier of the Java Runtime.
- Managed
Instance stringId - The OCID of the related managed instance. This property value is present only for /listJreUsage.
- Operating
Systems []GetList Jre Usage Item Operating System - The operating systems that have this Java Runtime installed.
- Release
Date string - The release date of the Java Runtime (formatted according to RFC3339).
- Security
Status string - The security status of the Java Runtime.
- Time
End string - The end of the time period during which resources are searched (formatted according to RFC3339).
- Time
First 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.
- Time
Last 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.
- Time
Start 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 IntegerCount - The approximate count of the applications running on this Java Runtime.
- approximate
Installation IntegerCount - The approximate count of installations that are installations of this Java Runtime.
- approximate
Managed IntegerInstance Count - The approximate count of the managed instances that report this Java Runtime.
- approximate
Pending IntegerWork Request Count - The approximate count of work requests working on this Java Runtime.
- days
Under 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.
- end
Of StringSupport Life Date - The End of Support Life (EOSL) date of the Java Runtime (formatted according to RFC3339).
- fleet
Id String - The OCID of the related fleet.
- id String
- The internal identifier of the Java Runtime.
- managed
Instance StringId - The OCID of the related managed instance. This property value is present only for /listJreUsage.
- operating
Systems List<GetList Jre Usage Item Operating System> - The operating systems that have this Java Runtime installed.
- release
Date String - The release date of the Java Runtime (formatted according to RFC3339).
- security
Status String - The security status of the Java Runtime.
- time
End String - The end of the time period during which resources are searched (formatted according to RFC3339).
- time
First 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.
- time
Last 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.
- time
Start 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 numberCount - The approximate count of the applications running on this Java Runtime.
- approximate
Installation numberCount - The approximate count of installations that are installations of this Java Runtime.
- approximate
Managed numberInstance Count - The approximate count of the managed instances that report this Java Runtime.
- approximate
Pending numberWork Request Count - The approximate count of work requests working on this Java Runtime.
- days
Under 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.
- end
Of stringSupport Life Date - The End of Support Life (EOSL) date of the Java Runtime (formatted according to RFC3339).
- fleet
Id string - The OCID of the related fleet.
- id string
- The internal identifier of the Java Runtime.
- managed
Instance stringId - The OCID of the related managed instance. This property value is present only for /listJreUsage.
- operating
Systems GetList Jre Usage Item Operating System[] - The operating systems that have this Java Runtime installed.
- release
Date string - The release date of the Java Runtime (formatted according to RFC3339).
- security
Status string - The security status of the Java Runtime.
- time
End string - The end of the time period during which resources are searched (formatted according to RFC3339).
- time
First 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.
- time
Last 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.
- time
Start 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.
- approximate
Application NumberCount - The approximate count of the applications running on this Java Runtime.
- approximate
Installation NumberCount - The approximate count of installations that are installations of this Java Runtime.
- approximate
Managed NumberInstance Count - The approximate count of the managed instances that report this Java Runtime.
- approximate
Pending NumberWork Request Count - The approximate count of work requests working on this Java Runtime.
- days
Under 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.
- end
Of StringSupport Life Date - The End of Support Life (EOSL) date of the Java Runtime (formatted according to RFC3339).
- fleet
Id String - The OCID of the related fleet.
- id String
- The internal identifier of the Java Runtime.
- managed
Instance StringId - The OCID of the related managed instance. This property value is present only for /listJreUsage.
- operating
Systems List<Property Map> - The operating systems that have this Java Runtime installed.
- release
Date String - The release date of the Java Runtime (formatted according to RFC3339).
- security
Status String - The security status of the Java Runtime.
- time
End String - The end of the time period during which resources are searched (formatted according to RFC3339).
- time
First 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.
- time
Last 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.
- time
Start 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
- Managed
Instance 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
- Managed
Instance 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
- managed
Instance 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
- managed
Instance 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
- managed
Instance 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
oci
Terraform Provider.