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

oci.Jms.getSummarizeResourceInventory

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 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)
    // 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 v2.17.0 published on Friday, Nov 15, 2024 by Pulumi