1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Jms
  5. getSummarizeResourceInventory
Oracle Cloud Infrastructure v1.29.0 published on Thursday, Mar 28, 2024 by Pulumi

oci.Jms.getSummarizeResourceInventory

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.29.0 published on Thursday, Mar 28, 2024 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: _var.compartment_id,
        timeEnd: _var.summarize_resource_inventory_time_end,
        timeStart: _var.summarize_resource_inventory_time_start,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_summarize_resource_inventory = oci.Jms.get_summarize_resource_inventory(compartment_id=var["compartment_id"],
        time_end=var["summarize_resource_inventory_time_end"],
        time_start=var["summarize_resource_inventory_time_start"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/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(_var.Compartment_id),
    			TimeEnd:       pulumi.StringRef(_var.Summarize_resource_inventory_time_end),
    			TimeStart:     pulumi.StringRef(_var.Summarize_resource_inventory_time_start),
    		}, 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 = @var.Compartment_id,
            TimeEnd = @var.Summarize_resource_inventory_time_end,
            TimeStart = @var.Summarize_resource_inventory_time_start,
        });
    
    });
    
    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(var_.compartment_id())
                .timeEnd(var_.summarize_resource_inventory_time_end())
                .timeStart(var_.summarize_resource_inventory_time_start())
                .build());
    
        }
    }
    
    variables:
      testSummarizeResourceInventory:
        fn::invoke:
          Function: oci:Jms:getSummarizeResourceInventory
          Arguments:
            compartmentId: ${var.compartment_id}
            timeEnd: ${var.summarize_resource_inventory_time_end}
            timeStart: ${var.summarize_resource_inventory_time_start}
    

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

    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.
    oci logo
    Oracle Cloud Infrastructure v1.29.0 published on Thursday, Mar 28, 2024 by Pulumi