1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Jms
  5. getSummarizeResourceInventory
Oracle Cloud Infrastructure v2.31.0 published on Thursday, Apr 17, 2025 by Pulumi

oci.Jms.getSummarizeResourceInventory

Explore with Pulumi AI

Oracle Cloud Infrastructure v2.31.0 published on Thursday, Apr 17, 2025 by Pulumi

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,
});
Copy
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)
Copy
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
	})
}
Copy
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,
    });

});
Copy
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());

    }
}
Copy
variables:
  testSummarizeResourceInventory:
    fn::invoke:
      function: oci:Jms:getSummarizeResourceInventory
      arguments:
        compartmentId: ${compartmentId}
        timeEnd: ${summarizeResourceInventoryTimeEnd}
        timeStart: ${summarizeResourceInventoryTimeStart}
Copy

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>
Copy
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]
Copy
func GetSummarizeResourceInventory(ctx *Context, args *GetSummarizeResourceInventoryArgs, opts ...InvokeOption) (*GetSummarizeResourceInventoryResult, error)
func GetSummarizeResourceInventoryOutput(ctx *Context, args *GetSummarizeResourceInventoryOutputArgs, opts ...InvokeOption) GetSummarizeResourceInventoryResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetSummarizeResourceInventoryResult> getSummarizeResourceInventory(GetSummarizeResourceInventoryArgs args, InvokeOptions options)
public static Output<GetSummarizeResourceInventoryResult> getSummarizeResourceInventory(GetSummarizeResourceInventoryArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: oci:Jms/getSummarizeResourceInventory:getSummarizeResourceInventory
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

CompartmentId string
The OCID of the compartment in which to list resources.
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).
CompartmentId string
The OCID of the compartment in which to list resources.
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).
compartmentId String
The OCID of the compartment in which to list resources.
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).
compartmentId string
The OCID of the compartment in which to list resources.
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).
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).
compartmentId String
The OCID of the compartment in which to list resources.
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).

getSummarizeResourceInventory Result

The following output properties are available:

ActiveFleetCount int
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.
ManagedInstanceCount int
The number of managed instances.
CompartmentId string
TimeEnd string
TimeStart string
ActiveFleetCount int
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.
ManagedInstanceCount int
The number of managed instances.
CompartmentId string
TimeEnd string
TimeStart string
activeFleetCount Integer
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.
managedInstanceCount Integer
The number of managed instances.
compartmentId String
timeEnd String
timeStart String
activeFleetCount number
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.
managedInstanceCount number
The number of managed instances.
compartmentId string
timeEnd string
timeStart string
active_fleet_count int
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_count int
The number of managed instances.
compartment_id str
time_end str
time_start str
activeFleetCount Number
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.
managedInstanceCount Number
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 oci Terraform Provider.
Oracle Cloud Infrastructure v2.31.0 published on Thursday, Apr 17, 2025 by Pulumi