1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Opsi
  5. getOperationsInsightsWarehouseResourceUsageSummary
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi

oci.Opsi.getOperationsInsightsWarehouseResourceUsageSummary

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi

    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/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:

    OperationsInsightsWarehouseId string
    Unique Operations Insights Warehouse identifier
    OperationsInsightsWarehouseId string
    Unique Operations Insights Warehouse identifier
    operationsInsightsWarehouseId String
    Unique Operations Insights Warehouse identifier
    operationsInsightsWarehouseId string
    Unique Operations Insights Warehouse identifier
    operations_insights_warehouse_id str
    Unique Operations Insights Warehouse identifier
    operationsInsightsWarehouseId String
    Unique Operations Insights Warehouse identifier

    getOperationsInsightsWarehouseResourceUsageSummary Result

    The following output properties are available:

    CpuUsed double
    Number of OCPUs used by OPSI Warehouse ADW. Can be fractional.
    Id string
    The provider-assigned unique ID for this managed resource.
    OperationsInsightsWarehouseId string
    State string
    Possible lifecycle states
    StorageUsedInGbs double
    Storage by OPSI Warehouse ADW in GB.
    CpuUsed float64
    Number of OCPUs used by OPSI Warehouse ADW. Can be fractional.
    Id string
    The provider-assigned unique ID for this managed resource.
    OperationsInsightsWarehouseId string
    State string
    Possible lifecycle states
    StorageUsedInGbs float64
    Storage by OPSI Warehouse ADW in GB.
    cpuUsed Double
    Number of OCPUs used by OPSI Warehouse ADW. Can be fractional.
    id String
    The provider-assigned unique ID for this managed resource.
    operationsInsightsWarehouseId String
    state String
    Possible lifecycle states
    storageUsedInGbs Double
    Storage by OPSI Warehouse ADW in GB.
    cpuUsed number
    Number of OCPUs used by OPSI Warehouse ADW. Can be fractional.
    id string
    The provider-assigned unique ID for this managed resource.
    operationsInsightsWarehouseId string
    state string
    Possible lifecycle states
    storageUsedInGbs number
    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_warehouse_id str
    state str
    Possible lifecycle states
    storage_used_in_gbs float
    Storage by OPSI Warehouse ADW in GB.
    cpuUsed Number
    Number of OCPUs used by OPSI Warehouse ADW. Can be fractional.
    id String
    The provider-assigned unique ID for this managed resource.
    operationsInsightsWarehouseId String
    state String
    Possible lifecycle states
    storageUsedInGbs Number
    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.
    oci logo
    Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi