oci.Opsi.getOperationsInsightsWarehouseResourceUsageSummary
Explore with Pulumi AI
This data source provides details about a specific Operations Insights Warehouse Resource Usage Summary resource in Oracle Cloud Infrastructure Opsi service.
Gets the details of resources used by an Operations Insights Warehouse. There is only expected to be 1 warehouse per tenant. The warehouse is expected to be in the root compartment.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testOperationsInsightsWarehouseResourceUsageSummary = oci.Opsi.getOperationsInsightsWarehouseResourceUsageSummary({
operationsInsightsWarehouseId: testOperationsInsightsWarehouse.id,
});
import pulumi
import pulumi_oci as oci
test_operations_insights_warehouse_resource_usage_summary = oci.Opsi.get_operations_insights_warehouse_resource_usage_summary(operations_insights_warehouse_id=test_operations_insights_warehouse["id"])
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/Opsi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := Opsi.GetOperationsInsightsWarehouseResourceUsageSummary(ctx, &opsi.GetOperationsInsightsWarehouseResourceUsageSummaryArgs{
OperationsInsightsWarehouseId: testOperationsInsightsWarehouse.Id,
}, 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 testOperationsInsightsWarehouseResourceUsageSummary = Oci.Opsi.GetOperationsInsightsWarehouseResourceUsageSummary.Invoke(new()
{
OperationsInsightsWarehouseId = testOperationsInsightsWarehouse.Id,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.Opsi.OpsiFunctions;
import com.pulumi.oci.Opsi.inputs.GetOperationsInsightsWarehouseResourceUsageSummaryArgs;
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 testOperationsInsightsWarehouseResourceUsageSummary = OpsiFunctions.getOperationsInsightsWarehouseResourceUsageSummary(GetOperationsInsightsWarehouseResourceUsageSummaryArgs.builder()
.operationsInsightsWarehouseId(testOperationsInsightsWarehouse.id())
.build());
}
}
variables:
testOperationsInsightsWarehouseResourceUsageSummary:
fn::invoke:
Function: oci:Opsi:getOperationsInsightsWarehouseResourceUsageSummary
Arguments:
operationsInsightsWarehouseId: ${testOperationsInsightsWarehouse.id}
Using getOperationsInsightsWarehouseResourceUsageSummary
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 getOperationsInsightsWarehouseResourceUsageSummary(args: GetOperationsInsightsWarehouseResourceUsageSummaryArgs, opts?: InvokeOptions): Promise<GetOperationsInsightsWarehouseResourceUsageSummaryResult>
function getOperationsInsightsWarehouseResourceUsageSummaryOutput(args: GetOperationsInsightsWarehouseResourceUsageSummaryOutputArgs, opts?: InvokeOptions): Output<GetOperationsInsightsWarehouseResourceUsageSummaryResult>
def get_operations_insights_warehouse_resource_usage_summary(operations_insights_warehouse_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetOperationsInsightsWarehouseResourceUsageSummaryResult
def get_operations_insights_warehouse_resource_usage_summary_output(operations_insights_warehouse_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetOperationsInsightsWarehouseResourceUsageSummaryResult]
func GetOperationsInsightsWarehouseResourceUsageSummary(ctx *Context, args *GetOperationsInsightsWarehouseResourceUsageSummaryArgs, opts ...InvokeOption) (*GetOperationsInsightsWarehouseResourceUsageSummaryResult, error)
func GetOperationsInsightsWarehouseResourceUsageSummaryOutput(ctx *Context, args *GetOperationsInsightsWarehouseResourceUsageSummaryOutputArgs, opts ...InvokeOption) GetOperationsInsightsWarehouseResourceUsageSummaryResultOutput
> Note: This function is named GetOperationsInsightsWarehouseResourceUsageSummary
in the Go SDK.
public static class GetOperationsInsightsWarehouseResourceUsageSummary
{
public static Task<GetOperationsInsightsWarehouseResourceUsageSummaryResult> InvokeAsync(GetOperationsInsightsWarehouseResourceUsageSummaryArgs args, InvokeOptions? opts = null)
public static Output<GetOperationsInsightsWarehouseResourceUsageSummaryResult> Invoke(GetOperationsInsightsWarehouseResourceUsageSummaryInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetOperationsInsightsWarehouseResourceUsageSummaryResult> getOperationsInsightsWarehouseResourceUsageSummary(GetOperationsInsightsWarehouseResourceUsageSummaryArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:Opsi/getOperationsInsightsWarehouseResourceUsageSummary:getOperationsInsightsWarehouseResourceUsageSummary
arguments:
# arguments dictionary
The following arguments are supported:
- Operations
Insights stringWarehouse Id - Unique Operations Insights Warehouse identifier
- Operations
Insights stringWarehouse Id - Unique Operations Insights Warehouse identifier
- operations
Insights StringWarehouse Id - Unique Operations Insights Warehouse identifier
- operations
Insights stringWarehouse Id - Unique Operations Insights Warehouse identifier
- operations_
insights_ strwarehouse_ id - Unique Operations Insights Warehouse identifier
- operations
Insights StringWarehouse Id - Unique Operations Insights Warehouse identifier
getOperationsInsightsWarehouseResourceUsageSummary Result
The following output properties are available:
- Cpu
Used double - Number of OCPUs used by OPSI Warehouse ADW. Can be fractional.
- Id string
- The provider-assigned unique ID for this managed resource.
- Operations
Insights stringWarehouse Id - State string
- Possible lifecycle states
- Storage
Used doubleIn Gbs - Storage by OPSI Warehouse ADW in GB.
- Cpu
Used float64 - Number of OCPUs used by OPSI Warehouse ADW. Can be fractional.
- Id string
- The provider-assigned unique ID for this managed resource.
- Operations
Insights stringWarehouse Id - State string
- Possible lifecycle states
- Storage
Used float64In Gbs - Storage by OPSI Warehouse ADW in GB.
- cpu
Used Double - Number of OCPUs used by OPSI Warehouse ADW. Can be fractional.
- id String
- The provider-assigned unique ID for this managed resource.
- operations
Insights StringWarehouse Id - state String
- Possible lifecycle states
- storage
Used DoubleIn Gbs - Storage by OPSI Warehouse ADW in GB.
- cpu
Used number - Number of OCPUs used by OPSI Warehouse ADW. Can be fractional.
- id string
- The provider-assigned unique ID for this managed resource.
- operations
Insights stringWarehouse Id - state string
- Possible lifecycle states
- storage
Used numberIn Gbs - Storage by OPSI Warehouse ADW in GB.
- cpu_
used float - Number of OCPUs used by OPSI Warehouse ADW. Can be fractional.
- id str
- The provider-assigned unique ID for this managed resource.
- operations_
insights_ strwarehouse_ id - state str
- Possible lifecycle states
- storage_
used_ floatin_ gbs - Storage by OPSI Warehouse ADW in GB.
- cpu
Used Number - Number of OCPUs used by OPSI Warehouse ADW. Can be fractional.
- id String
- The provider-assigned unique ID for this managed resource.
- operations
Insights StringWarehouse Id - state String
- Possible lifecycle states
- storage
Used NumberIn Gbs - Storage by OPSI Warehouse ADW in GB.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.