1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. oci
  5. getResourceAnalyticsResourceAnalyticsInstances
Oracle Cloud Infrastructure v3.10.0 published on Wednesday, Nov 5, 2025 by Pulumi

oci.oci.getResourceAnalyticsResourceAnalyticsInstances

Get Started
oci logo
Oracle Cloud Infrastructure v3.10.0 published on Wednesday, Nov 5, 2025 by Pulumi

    This data source provides the list of Resource Analytics Instances in Oracle Cloud Infrastructure Resource Analytics service.

    Gets a list of ResourceAnalyticsInstances.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testResourceAnalyticsInstances = oci.oci.getResourceAnalyticsResourceAnalyticsInstances({
        compartmentId: compartmentId,
        displayName: resourceAnalyticsInstanceDisplayName,
        id: resourceAnalyticsInstanceId,
        state: resourceAnalyticsInstanceState,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_resource_analytics_instances = oci.oci.get_resource_analytics_resource_analytics_instances(compartment_id=compartment_id,
        display_name=resource_analytics_instance_display_name,
        id=resource_analytics_instance_id,
        state=resource_analytics_instance_state)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/v3/go/oci/oci"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := oci.GetResourceAnalyticsResourceAnalyticsInstances(ctx, &oci.GetResourceAnalyticsResourceAnalyticsInstancesArgs{
    			CompartmentId: pulumi.StringRef(compartmentId),
    			DisplayName:   pulumi.StringRef(resourceAnalyticsInstanceDisplayName),
    			Id:            pulumi.StringRef(resourceAnalyticsInstanceId),
    			State:         pulumi.StringRef(resourceAnalyticsInstanceState),
    		}, 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 testResourceAnalyticsInstances = Oci.Oci.GetResourceAnalyticsResourceAnalyticsInstances.Invoke(new()
        {
            CompartmentId = compartmentId,
            DisplayName = resourceAnalyticsInstanceDisplayName,
            Id = resourceAnalyticsInstanceId,
            State = resourceAnalyticsInstanceState,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.oci.OciFunctions;
    import com.pulumi.oci.oci.inputs.GetResourceAnalyticsResourceAnalyticsInstancesArgs;
    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 testResourceAnalyticsInstances = OciFunctions.getResourceAnalyticsResourceAnalyticsInstances(GetResourceAnalyticsResourceAnalyticsInstancesArgs.builder()
                .compartmentId(compartmentId)
                .displayName(resourceAnalyticsInstanceDisplayName)
                .id(resourceAnalyticsInstanceId)
                .state(resourceAnalyticsInstanceState)
                .build());
    
        }
    }
    
    variables:
      testResourceAnalyticsInstances:
        fn::invoke:
          function: oci:oci:getResourceAnalyticsResourceAnalyticsInstances
          arguments:
            compartmentId: ${compartmentId}
            displayName: ${resourceAnalyticsInstanceDisplayName}
            id: ${resourceAnalyticsInstanceId}
            state: ${resourceAnalyticsInstanceState}
    

    Using getResourceAnalyticsResourceAnalyticsInstances

    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 getResourceAnalyticsResourceAnalyticsInstances(args: GetResourceAnalyticsResourceAnalyticsInstancesArgs, opts?: InvokeOptions): Promise<GetResourceAnalyticsResourceAnalyticsInstancesResult>
    function getResourceAnalyticsResourceAnalyticsInstancesOutput(args: GetResourceAnalyticsResourceAnalyticsInstancesOutputArgs, opts?: InvokeOptions): Output<GetResourceAnalyticsResourceAnalyticsInstancesResult>
    def get_resource_analytics_resource_analytics_instances(compartment_id: Optional[str] = None,
                                                            display_name: Optional[str] = None,
                                                            filters: Optional[Sequence[GetResourceAnalyticsResourceAnalyticsInstancesFilter]] = None,
                                                            id: Optional[str] = None,
                                                            state: Optional[str] = None,
                                                            opts: Optional[InvokeOptions] = None) -> GetResourceAnalyticsResourceAnalyticsInstancesResult
    def get_resource_analytics_resource_analytics_instances_output(compartment_id: Optional[pulumi.Input[str]] = None,
                                                            display_name: Optional[pulumi.Input[str]] = None,
                                                            filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetResourceAnalyticsResourceAnalyticsInstancesFilterArgs]]]] = None,
                                                            id: Optional[pulumi.Input[str]] = None,
                                                            state: Optional[pulumi.Input[str]] = None,
                                                            opts: Optional[InvokeOptions] = None) -> Output[GetResourceAnalyticsResourceAnalyticsInstancesResult]
    func GetResourceAnalyticsResourceAnalyticsInstances(ctx *Context, args *GetResourceAnalyticsResourceAnalyticsInstancesArgs, opts ...InvokeOption) (*GetResourceAnalyticsResourceAnalyticsInstancesResult, error)
    func GetResourceAnalyticsResourceAnalyticsInstancesOutput(ctx *Context, args *GetResourceAnalyticsResourceAnalyticsInstancesOutputArgs, opts ...InvokeOption) GetResourceAnalyticsResourceAnalyticsInstancesResultOutput

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

    public static class GetResourceAnalyticsResourceAnalyticsInstances 
    {
        public static Task<GetResourceAnalyticsResourceAnalyticsInstancesResult> InvokeAsync(GetResourceAnalyticsResourceAnalyticsInstancesArgs args, InvokeOptions? opts = null)
        public static Output<GetResourceAnalyticsResourceAnalyticsInstancesResult> Invoke(GetResourceAnalyticsResourceAnalyticsInstancesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetResourceAnalyticsResourceAnalyticsInstancesResult> getResourceAnalyticsResourceAnalyticsInstances(GetResourceAnalyticsResourceAnalyticsInstancesArgs args, InvokeOptions options)
    public static Output<GetResourceAnalyticsResourceAnalyticsInstancesResult> getResourceAnalyticsResourceAnalyticsInstances(GetResourceAnalyticsResourceAnalyticsInstancesArgs args, InvokeOptions options)
    
    fn::invoke:
      function: oci:oci/getResourceAnalyticsResourceAnalyticsInstances:getResourceAnalyticsResourceAnalyticsInstances
      arguments:
        # arguments dictionary

    The following arguments are supported:

    CompartmentId string
    The OCID of the compartment in which to list resources.
    DisplayName string
    A filter to return only resources that match the given display name exactly.
    Filters List<GetResourceAnalyticsResourceAnalyticsInstancesFilter>
    Id string
    The OCID of the ResourceAnalyticsInstance.
    State string
    A filter to return only resources that match the given lifecycle state. The state value is case-insensitive.
    CompartmentId string
    The OCID of the compartment in which to list resources.
    DisplayName string
    A filter to return only resources that match the given display name exactly.
    Filters []GetResourceAnalyticsResourceAnalyticsInstancesFilter
    Id string
    The OCID of the ResourceAnalyticsInstance.
    State string
    A filter to return only resources that match the given lifecycle state. The state value is case-insensitive.
    compartmentId String
    The OCID of the compartment in which to list resources.
    displayName String
    A filter to return only resources that match the given display name exactly.
    filters List<GetResourceAnalyticsResourceAnalyticsInstancesFilter>
    id String
    The OCID of the ResourceAnalyticsInstance.
    state String
    A filter to return only resources that match the given lifecycle state. The state value is case-insensitive.
    compartmentId string
    The OCID of the compartment in which to list resources.
    displayName string
    A filter to return only resources that match the given display name exactly.
    filters GetResourceAnalyticsResourceAnalyticsInstancesFilter[]
    id string
    The OCID of the ResourceAnalyticsInstance.
    state string
    A filter to return only resources that match the given lifecycle state. The state value is case-insensitive.
    compartment_id str
    The OCID of the compartment in which to list resources.
    display_name str
    A filter to return only resources that match the given display name exactly.
    filters Sequence[GetResourceAnalyticsResourceAnalyticsInstancesFilter]
    id str
    The OCID of the ResourceAnalyticsInstance.
    state str
    A filter to return only resources that match the given lifecycle state. The state value is case-insensitive.
    compartmentId String
    The OCID of the compartment in which to list resources.
    displayName String
    A filter to return only resources that match the given display name exactly.
    filters List<Property Map>
    id String
    The OCID of the ResourceAnalyticsInstance.
    state String
    A filter to return only resources that match the given lifecycle state. The state value is case-insensitive.

    getResourceAnalyticsResourceAnalyticsInstances Result

    The following output properties are available:

    ResourceAnalyticsInstanceCollections List<GetResourceAnalyticsResourceAnalyticsInstancesResourceAnalyticsInstanceCollection>
    The list of resource_analytics_instance_collection.
    CompartmentId string
    The OCID of the compartment.
    DisplayName string
    A user-friendly name. Does not have to be unique, and it's changeable.
    Filters List<GetResourceAnalyticsResourceAnalyticsInstancesFilter>
    Id string
    The OCID of the ResourceAnalyticsInstance.
    State string
    The current state of the ResourceAnalyticsInstance.
    ResourceAnalyticsInstanceCollections []GetResourceAnalyticsResourceAnalyticsInstancesResourceAnalyticsInstanceCollection
    The list of resource_analytics_instance_collection.
    CompartmentId string
    The OCID of the compartment.
    DisplayName string
    A user-friendly name. Does not have to be unique, and it's changeable.
    Filters []GetResourceAnalyticsResourceAnalyticsInstancesFilter
    Id string
    The OCID of the ResourceAnalyticsInstance.
    State string
    The current state of the ResourceAnalyticsInstance.
    resourceAnalyticsInstanceCollections List<GetResourceAnalyticsResourceAnalyticsInstancesResourceAnalyticsInstanceCollection>
    The list of resource_analytics_instance_collection.
    compartmentId String
    The OCID of the compartment.
    displayName String
    A user-friendly name. Does not have to be unique, and it's changeable.
    filters List<GetResourceAnalyticsResourceAnalyticsInstancesFilter>
    id String
    The OCID of the ResourceAnalyticsInstance.
    state String
    The current state of the ResourceAnalyticsInstance.
    resourceAnalyticsInstanceCollections GetResourceAnalyticsResourceAnalyticsInstancesResourceAnalyticsInstanceCollection[]
    The list of resource_analytics_instance_collection.
    compartmentId string
    The OCID of the compartment.
    displayName string
    A user-friendly name. Does not have to be unique, and it's changeable.
    filters GetResourceAnalyticsResourceAnalyticsInstancesFilter[]
    id string
    The OCID of the ResourceAnalyticsInstance.
    state string
    The current state of the ResourceAnalyticsInstance.
    resource_analytics_instance_collections Sequence[GetResourceAnalyticsResourceAnalyticsInstancesResourceAnalyticsInstanceCollection]
    The list of resource_analytics_instance_collection.
    compartment_id str
    The OCID of the compartment.
    display_name str
    A user-friendly name. Does not have to be unique, and it's changeable.
    filters Sequence[GetResourceAnalyticsResourceAnalyticsInstancesFilter]
    id str
    The OCID of the ResourceAnalyticsInstance.
    state str
    The current state of the ResourceAnalyticsInstance.
    resourceAnalyticsInstanceCollections List<Property Map>
    The list of resource_analytics_instance_collection.
    compartmentId String
    The OCID of the compartment.
    displayName String
    A user-friendly name. Does not have to be unique, and it's changeable.
    filters List<Property Map>
    id String
    The OCID of the ResourceAnalyticsInstance.
    state String
    The current state of the ResourceAnalyticsInstance.

    Supporting Types

    GetResourceAnalyticsResourceAnalyticsInstancesFilter

    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

    GetResourceAnalyticsResourceAnalyticsInstancesResourceAnalyticsInstanceCollection

    GetResourceAnalyticsResourceAnalyticsInstancesResourceAnalyticsInstanceCollectionItem

    AdwAdminPasswords List<GetResourceAnalyticsResourceAnalyticsInstancesResourceAnalyticsInstanceCollectionItemAdwAdminPassword>
    AdwId string
    The OCID of the created ADW instance.
    CompartmentId string
    The OCID of the compartment in which to list resources.
    DefinedTags Dictionary<string, string>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    Description string
    A description of the ResourceAnalyticsInstance instance.
    DisplayName string
    A filter to return only resources that match the given display name exactly.
    FreeformTags Dictionary<string, string>
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    Id string
    The OCID of the ResourceAnalyticsInstance.
    IsMutualTlsRequired bool
    LicenseModel string
    LifecycleDetails string
    A message that describes the current state of the ResourceAnalyticsInstance in more detail. For example, can be used to provide actionable information for a resource in the Failed state.
    NsgIds List<string>
    OacId string
    The OCID of the OAC enabled for the ResourceAnalyticsInstance.
    State string
    A filter to return only resources that match the given lifecycle state. The state value is case-insensitive.
    SubnetId string
    SystemTags 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 string
    The date and time the ResourceAnalyticsInstance was created, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    TimeUpdated string
    The date and time the ResourceAnalyticsInstance was updated, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    AdwAdminPasswords []GetResourceAnalyticsResourceAnalyticsInstancesResourceAnalyticsInstanceCollectionItemAdwAdminPassword
    AdwId string
    The OCID of the created ADW instance.
    CompartmentId string
    The OCID of the compartment in which to list resources.
    DefinedTags map[string]string
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    Description string
    A description of the ResourceAnalyticsInstance instance.
    DisplayName string
    A filter to return only resources that match the given display name exactly.
    FreeformTags map[string]string
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    Id string
    The OCID of the ResourceAnalyticsInstance.
    IsMutualTlsRequired bool
    LicenseModel string
    LifecycleDetails string
    A message that describes the current state of the ResourceAnalyticsInstance in more detail. For example, can be used to provide actionable information for a resource in the Failed state.
    NsgIds []string
    OacId string
    The OCID of the OAC enabled for the ResourceAnalyticsInstance.
    State string
    A filter to return only resources that match the given lifecycle state. The state value is case-insensitive.
    SubnetId string
    SystemTags 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 string
    The date and time the ResourceAnalyticsInstance was created, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    TimeUpdated string
    The date and time the ResourceAnalyticsInstance was updated, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    adwAdminPasswords List<GetResourceAnalyticsResourceAnalyticsInstancesResourceAnalyticsInstanceCollectionItemAdwAdminPassword>
    adwId String
    The OCID of the created ADW instance.
    compartmentId String
    The OCID of the compartment in which to list resources.
    definedTags Map<String,String>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    description String
    A description of the ResourceAnalyticsInstance instance.
    displayName String
    A filter to return only resources that match the given display name exactly.
    freeformTags Map<String,String>
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    id String
    The OCID of the ResourceAnalyticsInstance.
    isMutualTlsRequired Boolean
    licenseModel String
    lifecycleDetails String
    A message that describes the current state of the ResourceAnalyticsInstance in more detail. For example, can be used to provide actionable information for a resource in the Failed state.
    nsgIds List<String>
    oacId String
    The OCID of the OAC enabled for the ResourceAnalyticsInstance.
    state String
    A filter to return only resources that match the given lifecycle state. The state value is case-insensitive.
    subnetId String
    systemTags 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 String
    The date and time the ResourceAnalyticsInstance was created, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    timeUpdated String
    The date and time the ResourceAnalyticsInstance was updated, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    adwAdminPasswords GetResourceAnalyticsResourceAnalyticsInstancesResourceAnalyticsInstanceCollectionItemAdwAdminPassword[]
    adwId string
    The OCID of the created ADW instance.
    compartmentId string
    The OCID of the compartment in which to list resources.
    definedTags {[key: string]: string}
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    description string
    A description of the ResourceAnalyticsInstance instance.
    displayName string
    A filter to return only resources that match the given display name exactly.
    freeformTags {[key: string]: string}
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    id string
    The OCID of the ResourceAnalyticsInstance.
    isMutualTlsRequired boolean
    licenseModel string
    lifecycleDetails string
    A message that describes the current state of the ResourceAnalyticsInstance in more detail. For example, can be used to provide actionable information for a resource in the Failed state.
    nsgIds string[]
    oacId string
    The OCID of the OAC enabled for the ResourceAnalyticsInstance.
    state string
    A filter to return only resources that match the given lifecycle state. The state value is case-insensitive.
    subnetId string
    systemTags {[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 string
    The date and time the ResourceAnalyticsInstance was created, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    timeUpdated string
    The date and time the ResourceAnalyticsInstance was updated, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    adw_admin_passwords Sequence[GetResourceAnalyticsResourceAnalyticsInstancesResourceAnalyticsInstanceCollectionItemAdwAdminPassword]
    adw_id str
    The OCID of the created ADW instance.
    compartment_id str
    The OCID of the compartment in which to list resources.
    defined_tags Mapping[str, str]
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    description str
    A description of the ResourceAnalyticsInstance instance.
    display_name str
    A filter to return only resources that match the given display name exactly.
    freeform_tags Mapping[str, str]
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    id str
    The OCID of the ResourceAnalyticsInstance.
    is_mutual_tls_required bool
    license_model str
    lifecycle_details str
    A message that describes the current state of the ResourceAnalyticsInstance in more detail. For example, can be used to provide actionable information for a resource in the Failed state.
    nsg_ids Sequence[str]
    oac_id str
    The OCID of the OAC enabled for the ResourceAnalyticsInstance.
    state str
    A filter to return only resources that match the given lifecycle state. The state value is case-insensitive.
    subnet_id str
    system_tags 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 str
    The date and time the ResourceAnalyticsInstance was created, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    time_updated str
    The date and time the ResourceAnalyticsInstance was updated, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    adwAdminPasswords List<Property Map>
    adwId String
    The OCID of the created ADW instance.
    compartmentId String
    The OCID of the compartment in which to list resources.
    definedTags Map<String>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    description String
    A description of the ResourceAnalyticsInstance instance.
    displayName String
    A filter to return only resources that match the given display name exactly.
    freeformTags Map<String>
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    id String
    The OCID of the ResourceAnalyticsInstance.
    isMutualTlsRequired Boolean
    licenseModel String
    lifecycleDetails String
    A message that describes the current state of the ResourceAnalyticsInstance in more detail. For example, can be used to provide actionable information for a resource in the Failed state.
    nsgIds List<String>
    oacId String
    The OCID of the OAC enabled for the ResourceAnalyticsInstance.
    state String
    A filter to return only resources that match the given lifecycle state. The state value is case-insensitive.
    subnetId String
    systemTags Map<String>
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated String
    The date and time the ResourceAnalyticsInstance was created, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    timeUpdated String
    The date and time the ResourceAnalyticsInstance was updated, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z

    GetResourceAnalyticsResourceAnalyticsInstancesResourceAnalyticsInstanceCollectionItemAdwAdminPassword

    Password string
    PasswordType string
    SecretId string
    Password string
    PasswordType string
    SecretId string
    password String
    passwordType String
    secretId String
    password string
    passwordType string
    secretId string
    password String
    passwordType String
    secretId String

    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 v3.10.0 published on Wednesday, Nov 5, 2025 by Pulumi
      Meet Neo: Your AI Platform Teammate