1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. EmWarehouse
  5. getResourceUsage
Oracle Cloud Infrastructure v1.32.0 published on Thursday, Apr 18, 2024 by Pulumi

oci.EmWarehouse.getResourceUsage

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.32.0 published on Thursday, Apr 18, 2024 by Pulumi

    This data source provides details about a specific Em Warehouse Resource Usage resource in Oracle Cloud Infrastructure Em Warehouse service.

    Gets a EmWarehouseResourceUsage by identifier

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testEmWarehouseResourceUsage = oci.EmWarehouse.getResourceUsage({
        emWarehouseId: oci_em_warehouse_em_warehouse.test_em_warehouse.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_em_warehouse_resource_usage = oci.EmWarehouse.get_resource_usage(em_warehouse_id=oci_em_warehouse_em_warehouse["test_em_warehouse"]["id"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/go/oci/EmWarehouse"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := EmWarehouse.GetResourceUsage(ctx, &emwarehouse.GetResourceUsageArgs{
    			EmWarehouseId: oci_em_warehouse_em_warehouse.Test_em_warehouse.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 testEmWarehouseResourceUsage = Oci.EmWarehouse.GetResourceUsage.Invoke(new()
        {
            EmWarehouseId = oci_em_warehouse_em_warehouse.Test_em_warehouse.Id,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.EmWarehouse.EmWarehouseFunctions;
    import com.pulumi.oci.EmWarehouse.inputs.GetResourceUsageArgs;
    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 testEmWarehouseResourceUsage = EmWarehouseFunctions.getResourceUsage(GetResourceUsageArgs.builder()
                .emWarehouseId(oci_em_warehouse_em_warehouse.test_em_warehouse().id())
                .build());
    
        }
    }
    
    variables:
      testEmWarehouseResourceUsage:
        fn::invoke:
          Function: oci:EmWarehouse:getResourceUsage
          Arguments:
            emWarehouseId: ${oci_em_warehouse_em_warehouse.test_em_warehouse.id}
    

    Using getResourceUsage

    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 getResourceUsage(args: GetResourceUsageArgs, opts?: InvokeOptions): Promise<GetResourceUsageResult>
    function getResourceUsageOutput(args: GetResourceUsageOutputArgs, opts?: InvokeOptions): Output<GetResourceUsageResult>
    def get_resource_usage(em_warehouse_id: Optional[str] = None,
                           opts: Optional[InvokeOptions] = None) -> GetResourceUsageResult
    def get_resource_usage_output(em_warehouse_id: Optional[pulumi.Input[str]] = None,
                           opts: Optional[InvokeOptions] = None) -> Output[GetResourceUsageResult]
    func GetResourceUsage(ctx *Context, args *GetResourceUsageArgs, opts ...InvokeOption) (*GetResourceUsageResult, error)
    func GetResourceUsageOutput(ctx *Context, args *GetResourceUsageOutputArgs, opts ...InvokeOption) GetResourceUsageResultOutput

    > Note: This function is named GetResourceUsage in the Go SDK.

    public static class GetResourceUsage 
    {
        public static Task<GetResourceUsageResult> InvokeAsync(GetResourceUsageArgs args, InvokeOptions? opts = null)
        public static Output<GetResourceUsageResult> Invoke(GetResourceUsageInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetResourceUsageResult> getResourceUsage(GetResourceUsageArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:EmWarehouse/getResourceUsage:getResourceUsage
      arguments:
        # arguments dictionary

    The following arguments are supported:

    EmWarehouseId string
    unique EmWarehouse identifier
    EmWarehouseId string
    unique EmWarehouse identifier
    emWarehouseId String
    unique EmWarehouse identifier
    emWarehouseId string
    unique EmWarehouse identifier
    em_warehouse_id str
    unique EmWarehouse identifier
    emWarehouseId String
    unique EmWarehouse identifier

    getResourceUsage Result

    The following output properties are available:

    EmInstanceCount int
    EmInstanceCount
    EmInstances List<GetResourceUsageEmInstance>
    List of emInstances
    EmWarehouseId string
    Id string
    The provider-assigned unique ID for this managed resource.
    OperationsInsightsWarehouseId string
    operations Insights Warehouse Identifier
    SchemaName string
    schema name
    TargetsCount int
    EmInstance Target count
    EmInstanceCount int
    EmInstanceCount
    EmInstances []GetResourceUsageEmInstance
    List of emInstances
    EmWarehouseId string
    Id string
    The provider-assigned unique ID for this managed resource.
    OperationsInsightsWarehouseId string
    operations Insights Warehouse Identifier
    SchemaName string
    schema name
    TargetsCount int
    EmInstance Target count
    emInstanceCount Integer
    EmInstanceCount
    emInstances List<GetResourceUsageEmInstance>
    List of emInstances
    emWarehouseId String
    id String
    The provider-assigned unique ID for this managed resource.
    operationsInsightsWarehouseId String
    operations Insights Warehouse Identifier
    schemaName String
    schema name
    targetsCount Integer
    EmInstance Target count
    emInstanceCount number
    EmInstanceCount
    emInstances GetResourceUsageEmInstance[]
    List of emInstances
    emWarehouseId string
    id string
    The provider-assigned unique ID for this managed resource.
    operationsInsightsWarehouseId string
    operations Insights Warehouse Identifier
    schemaName string
    schema name
    targetsCount number
    EmInstance Target count
    em_instance_count int
    EmInstanceCount
    em_instances Sequence[emwarehouse.GetResourceUsageEmInstance]
    List of emInstances
    em_warehouse_id str
    id str
    The provider-assigned unique ID for this managed resource.
    operations_insights_warehouse_id str
    operations Insights Warehouse Identifier
    schema_name str
    schema name
    targets_count int
    EmInstance Target count
    emInstanceCount Number
    EmInstanceCount
    emInstances List<Property Map>
    List of emInstances
    emWarehouseId String
    id String
    The provider-assigned unique ID for this managed resource.
    operationsInsightsWarehouseId String
    operations Insights Warehouse Identifier
    schemaName String
    schema name
    targetsCount Number
    EmInstance Target count

    Supporting Types

    GetResourceUsageEmInstance

    EmDiscovererUrl string
    emdDiscoverer url
    EmHost string
    emHost name
    EmId string
    operations Insights Warehouse Identifier
    TargetsCount int
    EmInstance Target count
    EmDiscovererUrl string
    emdDiscoverer url
    EmHost string
    emHost name
    EmId string
    operations Insights Warehouse Identifier
    TargetsCount int
    EmInstance Target count
    emDiscovererUrl String
    emdDiscoverer url
    emHost String
    emHost name
    emId String
    operations Insights Warehouse Identifier
    targetsCount Integer
    EmInstance Target count
    emDiscovererUrl string
    emdDiscoverer url
    emHost string
    emHost name
    emId string
    operations Insights Warehouse Identifier
    targetsCount number
    EmInstance Target count
    em_discoverer_url str
    emdDiscoverer url
    em_host str
    emHost name
    em_id str
    operations Insights Warehouse Identifier
    targets_count int
    EmInstance Target count
    emDiscovererUrl String
    emdDiscoverer url
    emHost String
    emHost name
    emId String
    operations Insights Warehouse Identifier
    targetsCount Number
    EmInstance Target count

    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.32.0 published on Thursday, Apr 18, 2024 by Pulumi