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

oci.EmWarehouse.getEmWarehouses

Explore with Pulumi AI

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

    This data source provides the list of Em Warehouses in Oracle Cloud Infrastructure Em Warehouse service.

    Returns a list of EmWarehouses.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testEmWarehouses = oci.EmWarehouse.getEmWarehouses({
        compartmentId: _var.compartment_id,
        displayName: _var.em_warehouse_display_name,
        id: _var.em_warehouse_id,
        operationsInsightsWarehouseId: oci_opsi_operations_insights_warehouse.test_operations_insights_warehouse.id,
        state: _var.em_warehouse_state,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_em_warehouses = oci.EmWarehouse.get_em_warehouses(compartment_id=var["compartment_id"],
        display_name=var["em_warehouse_display_name"],
        id=var["em_warehouse_id"],
        operations_insights_warehouse_id=oci_opsi_operations_insights_warehouse["test_operations_insights_warehouse"]["id"],
        state=var["em_warehouse_state"])
    
    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.GetEmWarehouses(ctx, &emwarehouse.GetEmWarehousesArgs{
    			CompartmentId:                 pulumi.StringRef(_var.Compartment_id),
    			DisplayName:                   pulumi.StringRef(_var.Em_warehouse_display_name),
    			Id:                            pulumi.StringRef(_var.Em_warehouse_id),
    			OperationsInsightsWarehouseId: pulumi.StringRef(oci_opsi_operations_insights_warehouse.Test_operations_insights_warehouse.Id),
    			State:                         pulumi.StringRef(_var.Em_warehouse_state),
    		}, 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 testEmWarehouses = Oci.EmWarehouse.GetEmWarehouses.Invoke(new()
        {
            CompartmentId = @var.Compartment_id,
            DisplayName = @var.Em_warehouse_display_name,
            Id = @var.Em_warehouse_id,
            OperationsInsightsWarehouseId = oci_opsi_operations_insights_warehouse.Test_operations_insights_warehouse.Id,
            State = @var.Em_warehouse_state,
        });
    
    });
    
    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.GetEmWarehousesArgs;
    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 testEmWarehouses = EmWarehouseFunctions.getEmWarehouses(GetEmWarehousesArgs.builder()
                .compartmentId(var_.compartment_id())
                .displayName(var_.em_warehouse_display_name())
                .id(var_.em_warehouse_id())
                .operationsInsightsWarehouseId(oci_opsi_operations_insights_warehouse.test_operations_insights_warehouse().id())
                .state(var_.em_warehouse_state())
                .build());
    
        }
    }
    
    variables:
      testEmWarehouses:
        fn::invoke:
          Function: oci:EmWarehouse:getEmWarehouses
          Arguments:
            compartmentId: ${var.compartment_id}
            displayName: ${var.em_warehouse_display_name}
            id: ${var.em_warehouse_id}
            operationsInsightsWarehouseId: ${oci_opsi_operations_insights_warehouse.test_operations_insights_warehouse.id}
            state: ${var.em_warehouse_state}
    

    Using getEmWarehouses

    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 getEmWarehouses(args: GetEmWarehousesArgs, opts?: InvokeOptions): Promise<GetEmWarehousesResult>
    function getEmWarehousesOutput(args: GetEmWarehousesOutputArgs, opts?: InvokeOptions): Output<GetEmWarehousesResult>
    def get_em_warehouses(compartment_id: Optional[str] = None,
                          display_name: Optional[str] = None,
                          filters: Optional[Sequence[_emwarehouse.GetEmWarehousesFilter]] = None,
                          id: Optional[str] = None,
                          operations_insights_warehouse_id: Optional[str] = None,
                          state: Optional[str] = None,
                          opts: Optional[InvokeOptions] = None) -> GetEmWarehousesResult
    def get_em_warehouses_output(compartment_id: Optional[pulumi.Input[str]] = None,
                          display_name: Optional[pulumi.Input[str]] = None,
                          filters: Optional[pulumi.Input[Sequence[pulumi.Input[_emwarehouse.GetEmWarehousesFilterArgs]]]] = None,
                          id: Optional[pulumi.Input[str]] = None,
                          operations_insights_warehouse_id: Optional[pulumi.Input[str]] = None,
                          state: Optional[pulumi.Input[str]] = None,
                          opts: Optional[InvokeOptions] = None) -> Output[GetEmWarehousesResult]
    func GetEmWarehouses(ctx *Context, args *GetEmWarehousesArgs, opts ...InvokeOption) (*GetEmWarehousesResult, error)
    func GetEmWarehousesOutput(ctx *Context, args *GetEmWarehousesOutputArgs, opts ...InvokeOption) GetEmWarehousesResultOutput

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

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

    The following arguments are supported:

    CompartmentId string
    The ID of the compartment in which to list resources.
    DisplayName string
    A filter to return only resources that match the entire display name given.
    Filters List<GetEmWarehousesFilter>
    Id string
    unique EmWarehouse identifier
    OperationsInsightsWarehouseId string
    unique operationsInsightsWarehouseId identifier
    State string
    A filter to return only resources their lifecycleState matches the given lifecycleState.
    CompartmentId string
    The ID of the compartment in which to list resources.
    DisplayName string
    A filter to return only resources that match the entire display name given.
    Filters []GetEmWarehousesFilter
    Id string
    unique EmWarehouse identifier
    OperationsInsightsWarehouseId string
    unique operationsInsightsWarehouseId identifier
    State string
    A filter to return only resources their lifecycleState matches the given lifecycleState.
    compartmentId String
    The ID of the compartment in which to list resources.
    displayName String
    A filter to return only resources that match the entire display name given.
    filters List<GetsFilter>
    id String
    unique EmWarehouse identifier
    operationsInsightsWarehouseId String
    unique operationsInsightsWarehouseId identifier
    state String
    A filter to return only resources their lifecycleState matches the given lifecycleState.
    compartmentId string
    The ID of the compartment in which to list resources.
    displayName string
    A filter to return only resources that match the entire display name given.
    filters GetEmWarehousesFilter[]
    id string
    unique EmWarehouse identifier
    operationsInsightsWarehouseId string
    unique operationsInsightsWarehouseId identifier
    state string
    A filter to return only resources their lifecycleState matches the given lifecycleState.
    compartment_id str
    The ID of the compartment in which to list resources.
    display_name str
    A filter to return only resources that match the entire display name given.
    filters Sequence[emwarehouse.GetEmWarehousesFilter]
    id str
    unique EmWarehouse identifier
    operations_insights_warehouse_id str
    unique operationsInsightsWarehouseId identifier
    state str
    A filter to return only resources their lifecycleState matches the given lifecycleState.
    compartmentId String
    The ID of the compartment in which to list resources.
    displayName String
    A filter to return only resources that match the entire display name given.
    filters List<Property Map>
    id String
    unique EmWarehouse identifier
    operationsInsightsWarehouseId String
    unique operationsInsightsWarehouseId identifier
    state String
    A filter to return only resources their lifecycleState matches the given lifecycleState.

    getEmWarehouses Result

    The following output properties are available:

    EmWarehouseCollections List<GetEmWarehousesEmWarehouseCollection>
    The list of em_warehouse_collection.
    CompartmentId string
    Compartment Identifier
    DisplayName string
    EmWarehouse Identifier, can be renamed
    Filters List<GetEmWarehousesFilter>
    Id string
    Unique identifier that is immutable on creation
    OperationsInsightsWarehouseId string
    operations Insights Warehouse Identifier
    State string
    The current state of the EmWarehouse.
    EmWarehouseCollections []GetEmWarehousesEmWarehouseCollection
    The list of em_warehouse_collection.
    CompartmentId string
    Compartment Identifier
    DisplayName string
    EmWarehouse Identifier, can be renamed
    Filters []GetEmWarehousesFilter
    Id string
    Unique identifier that is immutable on creation
    OperationsInsightsWarehouseId string
    operations Insights Warehouse Identifier
    State string
    The current state of the EmWarehouse.
    emWarehouseCollections List<GetsCollection>
    The list of em_warehouse_collection.
    compartmentId String
    Compartment Identifier
    displayName String
    EmWarehouse Identifier, can be renamed
    filters List<GetsFilter>
    id String
    Unique identifier that is immutable on creation
    operationsInsightsWarehouseId String
    operations Insights Warehouse Identifier
    state String
    The current state of the EmWarehouse.
    emWarehouseCollections GetEmWarehousesEmWarehouseCollection[]
    The list of em_warehouse_collection.
    compartmentId string
    Compartment Identifier
    displayName string
    EmWarehouse Identifier, can be renamed
    filters GetEmWarehousesFilter[]
    id string
    Unique identifier that is immutable on creation
    operationsInsightsWarehouseId string
    operations Insights Warehouse Identifier
    state string
    The current state of the EmWarehouse.
    em_warehouse_collections Sequence[emwarehouse.GetEmWarehousesEmWarehouseCollection]
    The list of em_warehouse_collection.
    compartment_id str
    Compartment Identifier
    display_name str
    EmWarehouse Identifier, can be renamed
    filters Sequence[emwarehouse.GetEmWarehousesFilter]
    id str
    Unique identifier that is immutable on creation
    operations_insights_warehouse_id str
    operations Insights Warehouse Identifier
    state str
    The current state of the EmWarehouse.
    emWarehouseCollections List<Property Map>
    The list of em_warehouse_collection.
    compartmentId String
    Compartment Identifier
    displayName String
    EmWarehouse Identifier, can be renamed
    filters List<Property Map>
    id String
    Unique identifier that is immutable on creation
    operationsInsightsWarehouseId String
    operations Insights Warehouse Identifier
    state String
    The current state of the EmWarehouse.

    Supporting Types

    GetEmWarehousesEmWarehouseCollection

    GetEmWarehousesEmWarehouseCollectionItem

    CompartmentId string
    The ID of the compartment in which to list resources.
    DefinedTags Dictionary<string, object>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    DisplayName string
    A filter to return only resources that match the entire display name given.
    EmBridgeId string
    EMBridge Identifier
    EmWarehouseType string
    Type of the EmWarehouse.
    FreeformTags Dictionary<string, object>
    Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    Id string
    unique EmWarehouse identifier
    LatestEtlRunMessage string
    Data Flow Run Status Message
    LatestEtlRunStatus string
    Data Flow Run Status
    LatestEtlRunTime string
    Data Flow Run Total Time
    LifecycleDetails string
    A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
    OperationsInsightsWarehouseId string
    unique operationsInsightsWarehouseId identifier
    State string
    A filter to return only resources their lifecycleState matches the given lifecycleState.
    SystemTags Dictionary<string, object>
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    TimeCreated string
    The time the the EmWarehouse was created. An RFC3339 formatted datetime string
    TimeUpdated string
    The time the EmWarehouse was updated. An RFC3339 formatted datetime string
    CompartmentId string
    The ID of the compartment in which to list resources.
    DefinedTags map[string]interface{}
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    DisplayName string
    A filter to return only resources that match the entire display name given.
    EmBridgeId string
    EMBridge Identifier
    EmWarehouseType string
    Type of the EmWarehouse.
    FreeformTags map[string]interface{}
    Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    Id string
    unique EmWarehouse identifier
    LatestEtlRunMessage string
    Data Flow Run Status Message
    LatestEtlRunStatus string
    Data Flow Run Status
    LatestEtlRunTime string
    Data Flow Run Total Time
    LifecycleDetails string
    A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
    OperationsInsightsWarehouseId string
    unique operationsInsightsWarehouseId identifier
    State string
    A filter to return only resources their lifecycleState matches the given lifecycleState.
    SystemTags map[string]interface{}
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    TimeCreated string
    The time the the EmWarehouse was created. An RFC3339 formatted datetime string
    TimeUpdated string
    The time the EmWarehouse was updated. An RFC3339 formatted datetime string
    compartmentId String
    The ID of the compartment in which to list resources.
    definedTags Map<String,Object>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    displayName String
    A filter to return only resources that match the entire display name given.
    emBridgeId String
    EMBridge Identifier
    emWarehouseType String
    Type of the EmWarehouse.
    freeformTags Map<String,Object>
    Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    id String
    unique EmWarehouse identifier
    latestEtlRunMessage String
    Data Flow Run Status Message
    latestEtlRunStatus String
    Data Flow Run Status
    latestEtlRunTime String
    Data Flow Run Total Time
    lifecycleDetails String
    A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
    operationsInsightsWarehouseId String
    unique operationsInsightsWarehouseId identifier
    state String
    A filter to return only resources their lifecycleState matches the given lifecycleState.
    systemTags Map<String,Object>
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated String
    The time the the EmWarehouse was created. An RFC3339 formatted datetime string
    timeUpdated String
    The time the EmWarehouse was updated. An RFC3339 formatted datetime string
    compartmentId string
    The ID of the compartment in which to list resources.
    definedTags {[key: string]: any}
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    displayName string
    A filter to return only resources that match the entire display name given.
    emBridgeId string
    EMBridge Identifier
    emWarehouseType string
    Type of the EmWarehouse.
    freeformTags {[key: string]: any}
    Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    id string
    unique EmWarehouse identifier
    latestEtlRunMessage string
    Data Flow Run Status Message
    latestEtlRunStatus string
    Data Flow Run Status
    latestEtlRunTime string
    Data Flow Run Total Time
    lifecycleDetails string
    A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
    operationsInsightsWarehouseId string
    unique operationsInsightsWarehouseId identifier
    state string
    A filter to return only resources their lifecycleState matches the given lifecycleState.
    systemTags {[key: string]: any}
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated string
    The time the the EmWarehouse was created. An RFC3339 formatted datetime string
    timeUpdated string
    The time the EmWarehouse was updated. An RFC3339 formatted datetime string
    compartment_id str
    The ID of the compartment in which to list resources.
    defined_tags Mapping[str, Any]
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    display_name str
    A filter to return only resources that match the entire display name given.
    em_bridge_id str
    EMBridge Identifier
    em_warehouse_type str
    Type of the EmWarehouse.
    freeform_tags Mapping[str, Any]
    Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    id str
    unique EmWarehouse identifier
    latest_etl_run_message str
    Data Flow Run Status Message
    latest_etl_run_status str
    Data Flow Run Status
    latest_etl_run_time str
    Data Flow Run Total Time
    lifecycle_details str
    A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
    operations_insights_warehouse_id str
    unique operationsInsightsWarehouseId identifier
    state str
    A filter to return only resources their lifecycleState matches the given lifecycleState.
    system_tags Mapping[str, Any]
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    time_created str
    The time the the EmWarehouse was created. An RFC3339 formatted datetime string
    time_updated str
    The time the EmWarehouse was updated. An RFC3339 formatted datetime string
    compartmentId String
    The ID of the compartment in which to list resources.
    definedTags Map<Any>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    displayName String
    A filter to return only resources that match the entire display name given.
    emBridgeId String
    EMBridge Identifier
    emWarehouseType String
    Type of the EmWarehouse.
    freeformTags Map<Any>
    Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    id String
    unique EmWarehouse identifier
    latestEtlRunMessage String
    Data Flow Run Status Message
    latestEtlRunStatus String
    Data Flow Run Status
    latestEtlRunTime String
    Data Flow Run Total Time
    lifecycleDetails String
    A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
    operationsInsightsWarehouseId String
    unique operationsInsightsWarehouseId identifier
    state String
    A filter to return only resources their lifecycleState matches the given lifecycleState.
    systemTags Map<Any>
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated String
    The time the the EmWarehouse was created. An RFC3339 formatted datetime string
    timeUpdated String
    The time the EmWarehouse was updated. An RFC3339 formatted datetime string

    GetEmWarehousesFilter

    Name string
    Values List<string>
    Regex bool
    Name string
    Values []string
    Regex bool
    name String
    values List<String>
    regex Boolean
    name string
    values string[]
    regex boolean
    name str
    values Sequence[str]
    regex bool
    name String
    values List<String>
    regex Boolean

    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