1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Opsi
  5. getOperationsInsightsWarehouseUsers
Oracle Cloud Infrastructure v2.31.0 published on Thursday, Apr 17, 2025 by Pulumi

oci.Opsi.getOperationsInsightsWarehouseUsers

Explore with Pulumi AI

This data source provides the list of Operations Insights Warehouse Users in Oracle Cloud Infrastructure Opsi service.

Gets a list of Operations Insights Warehouse users. Either compartmentId or id must be specified. All these resources are expected to be in root compartment.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testOperationsInsightsWarehouseUsers = oci.Opsi.getOperationsInsightsWarehouseUsers({
    operationsInsightsWarehouseId: testOperationsInsightsWarehouse.id,
    compartmentId: compartmentId,
    displayName: operationsInsightsWarehouseUserDisplayName,
    id: operationsInsightsWarehouseUserId,
    states: operationsInsightsWarehouseUserState,
});
Copy
import pulumi
import pulumi_oci as oci

test_operations_insights_warehouse_users = oci.Opsi.get_operations_insights_warehouse_users(operations_insights_warehouse_id=test_operations_insights_warehouse["id"],
    compartment_id=compartment_id,
    display_name=operations_insights_warehouse_user_display_name,
    id=operations_insights_warehouse_user_id,
    states=operations_insights_warehouse_user_state)
Copy
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.GetOperationsInsightsWarehouseUsers(ctx, &opsi.GetOperationsInsightsWarehouseUsersArgs{
			OperationsInsightsWarehouseId: testOperationsInsightsWarehouse.Id,
			CompartmentId:                 pulumi.StringRef(compartmentId),
			DisplayName:                   pulumi.StringRef(operationsInsightsWarehouseUserDisplayName),
			Id:                            pulumi.StringRef(operationsInsightsWarehouseUserId),
			States:                        operationsInsightsWarehouseUserState,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;

return await Deployment.RunAsync(() => 
{
    var testOperationsInsightsWarehouseUsers = Oci.Opsi.GetOperationsInsightsWarehouseUsers.Invoke(new()
    {
        OperationsInsightsWarehouseId = testOperationsInsightsWarehouse.Id,
        CompartmentId = compartmentId,
        DisplayName = operationsInsightsWarehouseUserDisplayName,
        Id = operationsInsightsWarehouseUserId,
        States = operationsInsightsWarehouseUserState,
    });

});
Copy
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.GetOperationsInsightsWarehouseUsersArgs;
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 testOperationsInsightsWarehouseUsers = OpsiFunctions.getOperationsInsightsWarehouseUsers(GetOperationsInsightsWarehouseUsersArgs.builder()
            .operationsInsightsWarehouseId(testOperationsInsightsWarehouse.id())
            .compartmentId(compartmentId)
            .displayName(operationsInsightsWarehouseUserDisplayName)
            .id(operationsInsightsWarehouseUserId)
            .states(operationsInsightsWarehouseUserState)
            .build());

    }
}
Copy
variables:
  testOperationsInsightsWarehouseUsers:
    fn::invoke:
      function: oci:Opsi:getOperationsInsightsWarehouseUsers
      arguments:
        operationsInsightsWarehouseId: ${testOperationsInsightsWarehouse.id}
        compartmentId: ${compartmentId}
        displayName: ${operationsInsightsWarehouseUserDisplayName}
        id: ${operationsInsightsWarehouseUserId}
        states: ${operationsInsightsWarehouseUserState}
Copy

Using getOperationsInsightsWarehouseUsers

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 getOperationsInsightsWarehouseUsers(args: GetOperationsInsightsWarehouseUsersArgs, opts?: InvokeOptions): Promise<GetOperationsInsightsWarehouseUsersResult>
function getOperationsInsightsWarehouseUsersOutput(args: GetOperationsInsightsWarehouseUsersOutputArgs, opts?: InvokeOptions): Output<GetOperationsInsightsWarehouseUsersResult>
Copy
def get_operations_insights_warehouse_users(compartment_id: Optional[str] = None,
                                            display_name: Optional[str] = None,
                                            filters: Optional[Sequence[_opsi.GetOperationsInsightsWarehouseUsersFilter]] = None,
                                            id: Optional[str] = None,
                                            operations_insights_warehouse_id: Optional[str] = None,
                                            states: Optional[Sequence[str]] = None,
                                            opts: Optional[InvokeOptions] = None) -> GetOperationsInsightsWarehouseUsersResult
def get_operations_insights_warehouse_users_output(compartment_id: Optional[pulumi.Input[str]] = None,
                                            display_name: Optional[pulumi.Input[str]] = None,
                                            filters: Optional[pulumi.Input[Sequence[pulumi.Input[_opsi.GetOperationsInsightsWarehouseUsersFilterArgs]]]] = None,
                                            id: Optional[pulumi.Input[str]] = None,
                                            operations_insights_warehouse_id: Optional[pulumi.Input[str]] = None,
                                            states: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                                            opts: Optional[InvokeOptions] = None) -> Output[GetOperationsInsightsWarehouseUsersResult]
Copy
func GetOperationsInsightsWarehouseUsers(ctx *Context, args *GetOperationsInsightsWarehouseUsersArgs, opts ...InvokeOption) (*GetOperationsInsightsWarehouseUsersResult, error)
func GetOperationsInsightsWarehouseUsersOutput(ctx *Context, args *GetOperationsInsightsWarehouseUsersOutputArgs, opts ...InvokeOption) GetOperationsInsightsWarehouseUsersResultOutput
Copy

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

public static class GetOperationsInsightsWarehouseUsers 
{
    public static Task<GetOperationsInsightsWarehouseUsersResult> InvokeAsync(GetOperationsInsightsWarehouseUsersArgs args, InvokeOptions? opts = null)
    public static Output<GetOperationsInsightsWarehouseUsersResult> Invoke(GetOperationsInsightsWarehouseUsersInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetOperationsInsightsWarehouseUsersResult> getOperationsInsightsWarehouseUsers(GetOperationsInsightsWarehouseUsersArgs args, InvokeOptions options)
public static Output<GetOperationsInsightsWarehouseUsersResult> getOperationsInsightsWarehouseUsers(GetOperationsInsightsWarehouseUsersArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: oci:Opsi/getOperationsInsightsWarehouseUsers:getOperationsInsightsWarehouseUsers
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

OperationsInsightsWarehouseId This property is required. string
Unique Operations Insights Warehouse identifier
CompartmentId string
The OCID of the compartment.
DisplayName string
A filter to return only resources that match the entire display name.
Filters Changes to this property will trigger replacement. List<GetOperationsInsightsWarehouseUsersFilter>
Id string
Unique Operations Insights Warehouse User identifier
States List<string>
Lifecycle states
OperationsInsightsWarehouseId This property is required. string
Unique Operations Insights Warehouse identifier
CompartmentId string
The OCID of the compartment.
DisplayName string
A filter to return only resources that match the entire display name.
Filters Changes to this property will trigger replacement. []GetOperationsInsightsWarehouseUsersFilter
Id string
Unique Operations Insights Warehouse User identifier
States []string
Lifecycle states
operationsInsightsWarehouseId This property is required. String
Unique Operations Insights Warehouse identifier
compartmentId String
The OCID of the compartment.
displayName String
A filter to return only resources that match the entire display name.
filters Changes to this property will trigger replacement. List<GetOperationsInsightsWarehouseUsersFilter>
id String
Unique Operations Insights Warehouse User identifier
states List<String>
Lifecycle states
operationsInsightsWarehouseId This property is required. string
Unique Operations Insights Warehouse identifier
compartmentId string
The OCID of the compartment.
displayName string
A filter to return only resources that match the entire display name.
filters Changes to this property will trigger replacement. GetOperationsInsightsWarehouseUsersFilter[]
id string
Unique Operations Insights Warehouse User identifier
states string[]
Lifecycle states
operations_insights_warehouse_id This property is required. str
Unique Operations Insights Warehouse identifier
compartment_id str
The OCID of the compartment.
display_name str
A filter to return only resources that match the entire display name.
filters Changes to this property will trigger replacement. Sequence[opsi.GetOperationsInsightsWarehouseUsersFilter]
id str
Unique Operations Insights Warehouse User identifier
states Sequence[str]
Lifecycle states
operationsInsightsWarehouseId This property is required. String
Unique Operations Insights Warehouse identifier
compartmentId String
The OCID of the compartment.
displayName String
A filter to return only resources that match the entire display name.
filters Changes to this property will trigger replacement. List<Property Map>
id String
Unique Operations Insights Warehouse User identifier
states List<String>
Lifecycle states

getOperationsInsightsWarehouseUsers Result

The following output properties are available:

OperationsInsightsWarehouseId string
OPSI Warehouse OCID
OperationsInsightsWarehouseUserSummaryCollections List<GetOperationsInsightsWarehouseUsersOperationsInsightsWarehouseUserSummaryCollection>
The list of operations_insights_warehouse_user_summary_collection.
CompartmentId string
The OCID of the compartment.
DisplayName string
Filters List<GetOperationsInsightsWarehouseUsersFilter>
Id string
Hub User OCID
States List<string>
Possible lifecycle states
OperationsInsightsWarehouseId string
OPSI Warehouse OCID
OperationsInsightsWarehouseUserSummaryCollections []GetOperationsInsightsWarehouseUsersOperationsInsightsWarehouseUserSummaryCollection
The list of operations_insights_warehouse_user_summary_collection.
CompartmentId string
The OCID of the compartment.
DisplayName string
Filters []GetOperationsInsightsWarehouseUsersFilter
Id string
Hub User OCID
States []string
Possible lifecycle states
operationsInsightsWarehouseId String
OPSI Warehouse OCID
operationsInsightsWarehouseUserSummaryCollections List<GetOperationsInsightsWarehouseUsersOperationsInsightsWarehouseUserSummaryCollection>
The list of operations_insights_warehouse_user_summary_collection.
compartmentId String
The OCID of the compartment.
displayName String
filters List<GetOperationsInsightsWarehouseUsersFilter>
id String
Hub User OCID
states List<String>
Possible lifecycle states
operationsInsightsWarehouseId string
OPSI Warehouse OCID
operationsInsightsWarehouseUserSummaryCollections GetOperationsInsightsWarehouseUsersOperationsInsightsWarehouseUserSummaryCollection[]
The list of operations_insights_warehouse_user_summary_collection.
compartmentId string
The OCID of the compartment.
displayName string
filters GetOperationsInsightsWarehouseUsersFilter[]
id string
Hub User OCID
states string[]
Possible lifecycle states
operationsInsightsWarehouseId String
OPSI Warehouse OCID
operationsInsightsWarehouseUserSummaryCollections List<Property Map>
The list of operations_insights_warehouse_user_summary_collection.
compartmentId String
The OCID of the compartment.
displayName String
filters List<Property Map>
id String
Hub User OCID
states List<String>
Possible lifecycle states

Supporting Types

GetOperationsInsightsWarehouseUsersFilter

Name This property is required. string
Username for schema which would have access to AWR Data, Enterprise Manager Data and Ops Insights OPSI Hub.
Values This property is required. List<string>
Regex bool
Name This property is required. string
Username for schema which would have access to AWR Data, Enterprise Manager Data and Ops Insights OPSI Hub.
Values This property is required. []string
Regex bool
name This property is required. String
Username for schema which would have access to AWR Data, Enterprise Manager Data and Ops Insights OPSI Hub.
values This property is required. List<String>
regex Boolean
name This property is required. string
Username for schema which would have access to AWR Data, Enterprise Manager Data and Ops Insights OPSI Hub.
values This property is required. string[]
regex boolean
name This property is required. str
Username for schema which would have access to AWR Data, Enterprise Manager Data and Ops Insights OPSI Hub.
values This property is required. Sequence[str]
regex bool
name This property is required. String
Username for schema which would have access to AWR Data, Enterprise Manager Data and Ops Insights OPSI Hub.
values This property is required. List<String>
regex Boolean

GetOperationsInsightsWarehouseUsersOperationsInsightsWarehouseUserSummaryCollection

items This property is required. List<Property Map>

GetOperationsInsightsWarehouseUsersOperationsInsightsWarehouseUserSummaryCollectionItem

CompartmentId This property is required. string
The OCID of the compartment.
ConnectionPassword This property is required. string
User provided connection password for the AWR Data, Enterprise Manager Data and Ops Insights OPSI Hub.
DefinedTags This property is required. Dictionary<string, string>
Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
FreeformTags This property is required. Dictionary<string, string>
Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
Id This property is required. string
Unique Operations Insights Warehouse User identifier
IsAwrDataAccess This property is required. bool
Indicate whether user has access to AWR data.
IsEmDataAccess This property is required. bool
Indicate whether user has access to EM data.
IsOpsiDataAccess This property is required. bool
Indicate whether user has access to OPSI data.
LifecycleDetails This property is required. 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.
Name This property is required. string
Username for schema which would have access to AWR Data, Enterprise Manager Data and Ops Insights OPSI Hub.
OperationsInsightsWarehouseId This property is required. string
Unique Operations Insights Warehouse identifier
State This property is required. string
Lifecycle states
SystemTags This property is required. Dictionary<string, string>
System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
TimeCreated This property is required. string
The time at which the resource was first created. An RFC3339 formatted datetime string
TimeUpdated This property is required. string
The time at which the resource was last updated. An RFC3339 formatted datetime string
CompartmentId This property is required. string
The OCID of the compartment.
ConnectionPassword This property is required. string
User provided connection password for the AWR Data, Enterprise Manager Data and Ops Insights OPSI Hub.
DefinedTags This property is required. map[string]string
Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
FreeformTags This property is required. map[string]string
Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
Id This property is required. string
Unique Operations Insights Warehouse User identifier
IsAwrDataAccess This property is required. bool
Indicate whether user has access to AWR data.
IsEmDataAccess This property is required. bool
Indicate whether user has access to EM data.
IsOpsiDataAccess This property is required. bool
Indicate whether user has access to OPSI data.
LifecycleDetails This property is required. 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.
Name This property is required. string
Username for schema which would have access to AWR Data, Enterprise Manager Data and Ops Insights OPSI Hub.
OperationsInsightsWarehouseId This property is required. string
Unique Operations Insights Warehouse identifier
State This property is required. string
Lifecycle states
SystemTags This property is required. map[string]string
System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
TimeCreated This property is required. string
The time at which the resource was first created. An RFC3339 formatted datetime string
TimeUpdated This property is required. string
The time at which the resource was last updated. An RFC3339 formatted datetime string
compartmentId This property is required. String
The OCID of the compartment.
connectionPassword This property is required. String
User provided connection password for the AWR Data, Enterprise Manager Data and Ops Insights OPSI Hub.
definedTags This property is required. Map<String,String>
Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
freeformTags This property is required. Map<String,String>
Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
id This property is required. String
Unique Operations Insights Warehouse User identifier
isAwrDataAccess This property is required. Boolean
Indicate whether user has access to AWR data.
isEmDataAccess This property is required. Boolean
Indicate whether user has access to EM data.
isOpsiDataAccess This property is required. Boolean
Indicate whether user has access to OPSI data.
lifecycleDetails This property is required. 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.
name This property is required. String
Username for schema which would have access to AWR Data, Enterprise Manager Data and Ops Insights OPSI Hub.
operationsInsightsWarehouseId This property is required. String
Unique Operations Insights Warehouse identifier
state This property is required. String
Lifecycle states
systemTags This property is required. Map<String,String>
System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
timeCreated This property is required. String
The time at which the resource was first created. An RFC3339 formatted datetime string
timeUpdated This property is required. String
The time at which the resource was last updated. An RFC3339 formatted datetime string
compartmentId This property is required. string
The OCID of the compartment.
connectionPassword This property is required. string
User provided connection password for the AWR Data, Enterprise Manager Data and Ops Insights OPSI Hub.
definedTags This property is required. {[key: string]: string}
Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
freeformTags This property is required. {[key: string]: string}
Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
id This property is required. string
Unique Operations Insights Warehouse User identifier
isAwrDataAccess This property is required. boolean
Indicate whether user has access to AWR data.
isEmDataAccess This property is required. boolean
Indicate whether user has access to EM data.
isOpsiDataAccess This property is required. boolean
Indicate whether user has access to OPSI data.
lifecycleDetails This property is required. 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.
name This property is required. string
Username for schema which would have access to AWR Data, Enterprise Manager Data and Ops Insights OPSI Hub.
operationsInsightsWarehouseId This property is required. string
Unique Operations Insights Warehouse identifier
state This property is required. string
Lifecycle states
systemTags This property is required. {[key: string]: string}
System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
timeCreated This property is required. string
The time at which the resource was first created. An RFC3339 formatted datetime string
timeUpdated This property is required. string
The time at which the resource was last updated. An RFC3339 formatted datetime string
compartment_id This property is required. str
The OCID of the compartment.
connection_password This property is required. str
User provided connection password for the AWR Data, Enterprise Manager Data and Ops Insights OPSI Hub.
defined_tags This property is required. Mapping[str, str]
Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
freeform_tags This property is required. Mapping[str, str]
Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
id This property is required. str
Unique Operations Insights Warehouse User identifier
is_awr_data_access This property is required. bool
Indicate whether user has access to AWR data.
is_em_data_access This property is required. bool
Indicate whether user has access to EM data.
is_opsi_data_access This property is required. bool
Indicate whether user has access to OPSI data.
lifecycle_details This property is required. 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.
name This property is required. str
Username for schema which would have access to AWR Data, Enterprise Manager Data and Ops Insights OPSI Hub.
operations_insights_warehouse_id This property is required. str
Unique Operations Insights Warehouse identifier
state This property is required. str
Lifecycle states
system_tags This property is required. Mapping[str, str]
System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
time_created This property is required. str
The time at which the resource was first created. An RFC3339 formatted datetime string
time_updated This property is required. str
The time at which the resource was last updated. An RFC3339 formatted datetime string
compartmentId This property is required. String
The OCID of the compartment.
connectionPassword This property is required. String
User provided connection password for the AWR Data, Enterprise Manager Data and Ops Insights OPSI Hub.
definedTags This property is required. Map<String>
Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
freeformTags This property is required. Map<String>
Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
id This property is required. String
Unique Operations Insights Warehouse User identifier
isAwrDataAccess This property is required. Boolean
Indicate whether user has access to AWR data.
isEmDataAccess This property is required. Boolean
Indicate whether user has access to EM data.
isOpsiDataAccess This property is required. Boolean
Indicate whether user has access to OPSI data.
lifecycleDetails This property is required. 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.
name This property is required. String
Username for schema which would have access to AWR Data, Enterprise Manager Data and Ops Insights OPSI Hub.
operationsInsightsWarehouseId This property is required. String
Unique Operations Insights Warehouse identifier
state This property is required. String
Lifecycle states
systemTags This property is required. Map<String>
System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
timeCreated This property is required. String
The time at which the resource was first created. An RFC3339 formatted datetime string
timeUpdated This property is required. String
The time at which the resource was last updated. An RFC3339 formatted datetime string

Package Details

Repository
oci pulumi/pulumi-oci
License
Apache-2.0
Notes
This Pulumi package is based on the oci Terraform Provider.