Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 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)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:Jms/getSummarizeResourceInventory:getSummarizeResourceInventory
arguments:
# arguments dictionary
The 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:
- Active
Fleet intCount - The number of active fleets.
- Application
Count int - The number of applications.
- Id string
- 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 string - Time
End string - Time
Start string
- Active
Fleet intCount - The number of active fleets.
- Application
Count int - The number of applications.
- Id string
- 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 string - Time
End string - Time
Start string
- active
Fleet IntegerCount - The number of active fleets.
- application
Count Integer - The number of applications.
- id String
- The provider-assigned unique ID for this managed resource.
- installation
Count Integer - The number of Java installations.
- jre
Count Integer - The number of Java Runtimes.
- managed
Instance IntegerCount - The number of managed instances.
- compartment
Id String - time
End String - time
Start String
- active
Fleet numberCount - The number of active fleets.
- application
Count number - The number of applications.
- id string
- The provider-assigned unique ID for this managed resource.
- installation
Count number - The number of Java installations.
- jre
Count number - The number of Java Runtimes.
- managed
Instance numberCount - The number of managed instances.
- compartment
Id string - time
End string - time
Start 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
- active
Fleet NumberCount - The number of active fleets.
- application
Count Number - The number of applications.
- id String
- The provider-assigned unique ID for this managed resource.
- installation
Count Number - The number of Java installations.
- jre
Count Number - The number of Java Runtimes.
- managed
Instance NumberCount - The number of managed instances.
- compartment
Id String - time
End String - time
Start String
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.