Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.Jms.getSummarizeResourceInventory
Explore with Pulumi AI
This data source provides details about a specific Summarize Resource Inventory resource in Oracle Cloud Infrastructure Jms service.
Retrieve the inventory of JMS resources in the specified compartment: a list of the number of active fleets, managed instances, Java Runtimes, Java installations, and applications.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testSummarizeResourceInventory = oci.Jms.getSummarizeResourceInventory({
    compartmentId: compartmentId,
    timeEnd: summarizeResourceInventoryTimeEnd,
    timeStart: summarizeResourceInventoryTimeStart,
});
import pulumi
import pulumi_oci as oci
test_summarize_resource_inventory = oci.Jms.get_summarize_resource_inventory(compartment_id=compartment_id,
    time_end=summarize_resource_inventory_time_end,
    time_start=summarize_resource_inventory_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.GetSummarizeResourceInventory(ctx, &jms.GetSummarizeResourceInventoryArgs{
			CompartmentId: pulumi.StringRef(compartmentId),
			TimeEnd:       pulumi.StringRef(summarizeResourceInventoryTimeEnd),
			TimeStart:     pulumi.StringRef(summarizeResourceInventoryTimeStart),
		}, 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 testSummarizeResourceInventory = Oci.Jms.GetSummarizeResourceInventory.Invoke(new()
    {
        CompartmentId = compartmentId,
        TimeEnd = summarizeResourceInventoryTimeEnd,
        TimeStart = summarizeResourceInventoryTimeStart,
    });
});
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.GetSummarizeResourceInventoryArgs;
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 testSummarizeResourceInventory = JmsFunctions.getSummarizeResourceInventory(GetSummarizeResourceInventoryArgs.builder()
            .compartmentId(compartmentId)
            .timeEnd(summarizeResourceInventoryTimeEnd)
            .timeStart(summarizeResourceInventoryTimeStart)
            .build());
    }
}
variables:
  testSummarizeResourceInventory:
    fn::invoke:
      function: oci:Jms:getSummarizeResourceInventory
      arguments:
        compartmentId: ${compartmentId}
        timeEnd: ${summarizeResourceInventoryTimeEnd}
        timeStart: ${summarizeResourceInventoryTimeStart}
Using getSummarizeResourceInventory
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 getSummarizeResourceInventory(args: GetSummarizeResourceInventoryArgs, opts?: InvokeOptions): Promise<GetSummarizeResourceInventoryResult>
function getSummarizeResourceInventoryOutput(args: GetSummarizeResourceInventoryOutputArgs, opts?: InvokeOptions): Output<GetSummarizeResourceInventoryResult>def get_summarize_resource_inventory(compartment_id: Optional[str] = None,
                                     time_end: Optional[str] = None,
                                     time_start: Optional[str] = None,
                                     opts: Optional[InvokeOptions] = None) -> GetSummarizeResourceInventoryResult
def get_summarize_resource_inventory_output(compartment_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[GetSummarizeResourceInventoryResult]func GetSummarizeResourceInventory(ctx *Context, args *GetSummarizeResourceInventoryArgs, opts ...InvokeOption) (*GetSummarizeResourceInventoryResult, error)
func GetSummarizeResourceInventoryOutput(ctx *Context, args *GetSummarizeResourceInventoryOutputArgs, opts ...InvokeOption) GetSummarizeResourceInventoryResultOutput> Note: This function is named GetSummarizeResourceInventory in the Go SDK.
public static class GetSummarizeResourceInventory 
{
    public static Task<GetSummarizeResourceInventoryResult> InvokeAsync(GetSummarizeResourceInventoryArgs args, InvokeOptions? opts = null)
    public static Output<GetSummarizeResourceInventoryResult> Invoke(GetSummarizeResourceInventoryInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetSummarizeResourceInventoryResult> getSummarizeResourceInventory(GetSummarizeResourceInventoryArgs args, InvokeOptions options)
public static Output<GetSummarizeResourceInventoryResult> getSummarizeResourceInventory(GetSummarizeResourceInventoryArgs args, InvokeOptions options)
fn::invoke:
  function: oci:Jms/getSummarizeResourceInventory:getSummarizeResourceInventory
  arguments:
    # arguments dictionaryThe following arguments are supported:
- compartment_id str
- The OCID of the compartment in which to list resources.
- 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).
getSummarizeResourceInventory Result
The following output properties are available:
- ActiveFleet intCount 
- The number of active fleets.
- ApplicationCount int
- The number of applications.
- Id string
- The provider-assigned unique ID for this managed resource.
- InstallationCount int
- The number of Java installations.
- JreCount int
- The number of Java Runtimes.
- ManagedInstance intCount 
- The number of managed instances.
- CompartmentId string
- TimeEnd string
- TimeStart string
- ActiveFleet intCount 
- The number of active fleets.
- ApplicationCount int
- The number of applications.
- Id string
- The provider-assigned unique ID for this managed resource.
- InstallationCount int
- The number of Java installations.
- JreCount int
- The number of Java Runtimes.
- ManagedInstance intCount 
- The number of managed instances.
- CompartmentId string
- TimeEnd string
- TimeStart string
- activeFleet IntegerCount 
- The number of active fleets.
- applicationCount Integer
- The number of applications.
- id String
- The provider-assigned unique ID for this managed resource.
- installationCount Integer
- The number of Java installations.
- jreCount Integer
- The number of Java Runtimes.
- managedInstance IntegerCount 
- The number of managed instances.
- compartmentId String
- timeEnd String
- timeStart String
- activeFleet numberCount 
- The number of active fleets.
- applicationCount number
- The number of applications.
- id string
- The provider-assigned unique ID for this managed resource.
- installationCount number
- The number of Java installations.
- jreCount number
- The number of Java Runtimes.
- managedInstance numberCount 
- The number of managed instances.
- compartmentId string
- timeEnd string
- timeStart string
- active_fleet_ intcount 
- The number of active fleets.
- application_count int
- The number of applications.
- id str
- The provider-assigned unique ID for this managed resource.
- installation_count int
- The number of Java installations.
- jre_count int
- The number of Java Runtimes.
- managed_instance_ intcount 
- The number of managed instances.
- compartment_id str
- time_end str
- time_start str
- activeFleet NumberCount 
- The number of active fleets.
- applicationCount Number
- The number of applications.
- id String
- The provider-assigned unique ID for this managed resource.
- installationCount Number
- The number of Java installations.
- jreCount Number
- The number of Java Runtimes.
- managedInstance NumberCount 
- The number of managed instances.
- compartmentId String
- timeEnd String
- timeStart String
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.