1. Registry
  2. Packages
  3. Oracle Cloud Infrastructure
  4. API Docs
  5. Analytics
  6. getAnalyticsInstanceResourceGroups
Viewing docs for Oracle Cloud Infrastructure v4.21.0
published on Monday, Aug 24, 2026 by Pulumi
oci logo oci logo
Viewing docs for Oracle Cloud Infrastructure v4.21.0
published on Monday, Aug 24, 2026 by Pulumi

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

    List resource groups associated with an instance.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testAnalyticsInstanceResourceGroups = oci.analytics.getAnalyticsInstanceResourceGroups({
        analyticsInstanceId: testAnalyticsInstance.id,
        name: analyticsInstanceResourceGroupName,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_analytics_instance_resource_groups = oci.analytics.get_analytics_instance_resource_groups(analytics_instance_id=test_analytics_instance["id"],
        name=analytics_instance_resource_group_name)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/v4/go/oci/analytics"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := analytics.GetAnalyticsInstanceResourceGroups(ctx, &analytics.GetAnalyticsInstanceResourceGroupsArgs{
    			AnalyticsInstanceId: testAnalyticsInstance.Id,
    			Name:                pulumi.StringRef(analyticsInstanceResourceGroupName),
    		}, 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 testAnalyticsInstanceResourceGroups = Oci.Analytics.GetAnalyticsInstanceResourceGroups.Invoke(new()
        {
            AnalyticsInstanceId = testAnalyticsInstance.Id,
            Name = analyticsInstanceResourceGroupName,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.Analytics.AnalyticsFunctions;
    import com.pulumi.oci.Analytics.inputs.GetAnalyticsInstanceResourceGroupsArgs;
    import java.util.ArrayList;
    import java.util.Arrays;
    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 testAnalyticsInstanceResourceGroups = AnalyticsFunctions.getAnalyticsInstanceResourceGroups(GetAnalyticsInstanceResourceGroupsArgs.builder()
                .analyticsInstanceId(testAnalyticsInstance.id())
                .name(analyticsInstanceResourceGroupName)
                .build());
    
        }
    }
    
    variables:
      testAnalyticsInstanceResourceGroups:
        fn::invoke:
          function: oci:Analytics:getAnalyticsInstanceResourceGroups
          arguments:
            analyticsInstanceId: ${testAnalyticsInstance.id}
            name: ${analyticsInstanceResourceGroupName}
    
    pulumi {
      required_providers {
        oci = {
          source = "pulumi/oci"
        }
      }
    }
    
    data "oci_analytics_getanalyticsinstanceresourcegroups" "testAnalyticsInstanceResourceGroups" {
      analytics_instance_id = testAnalyticsInstance.id
      name                  = analyticsInstanceResourceGroupName
    }
    

    Using getAnalyticsInstanceResourceGroups

    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 getAnalyticsInstanceResourceGroups(args: GetAnalyticsInstanceResourceGroupsArgs, opts?: InvokeOptions): Promise<GetAnalyticsInstanceResourceGroupsResult>
    function getAnalyticsInstanceResourceGroupsOutput(args: GetAnalyticsInstanceResourceGroupsOutputArgs, opts?: InvokeOutputOptions): Output<GetAnalyticsInstanceResourceGroupsResult>
    def get_analytics_instance_resource_groups(analytics_instance_id: Optional[str] = None,
                                               filters: Optional[Sequence[GetAnalyticsInstanceResourceGroupsFilter]] = None,
                                               name: Optional[str] = None,
                                               opts: Optional[InvokeOptions] = None) -> GetAnalyticsInstanceResourceGroupsResult
    def get_analytics_instance_resource_groups_output(analytics_instance_id: pulumi.Input[Optional[str]] = None,
                                               filters: pulumi.Input[Optional[Sequence[pulumi.Input[GetAnalyticsInstanceResourceGroupsFilterArgs]]]] = None,
                                               name: pulumi.Input[Optional[str]] = None,
                                               opts: Optional[InvokeOutputOptions] = None) -> Output[GetAnalyticsInstanceResourceGroupsResult]
    func GetAnalyticsInstanceResourceGroups(ctx *Context, args *GetAnalyticsInstanceResourceGroupsArgs, opts ...InvokeOption) (*GetAnalyticsInstanceResourceGroupsResult, error)
    func GetAnalyticsInstanceResourceGroupsOutput(ctx *Context, args *GetAnalyticsInstanceResourceGroupsOutputArgs, opts ...InvokeOption) GetAnalyticsInstanceResourceGroupsResultOutput

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

    public static class GetAnalyticsInstanceResourceGroups 
    {
        public static Task<GetAnalyticsInstanceResourceGroupsResult> InvokeAsync(GetAnalyticsInstanceResourceGroupsArgs args, InvokeOptions? opts = null)
        public static Output<GetAnalyticsInstanceResourceGroupsResult> Invoke(GetAnalyticsInstanceResourceGroupsInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetAnalyticsInstanceResourceGroupsResult> Invoke(GetAnalyticsInstanceResourceGroupsInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetAnalyticsInstanceResourceGroupsResult> getAnalyticsInstanceResourceGroups(GetAnalyticsInstanceResourceGroupsArgs args, InvokeOptions options)
    public static Output<GetAnalyticsInstanceResourceGroupsResult> getAnalyticsInstanceResourceGroups(GetAnalyticsInstanceResourceGroupsArgs args, InvokeOptions options)
    public static Output<GetAnalyticsInstanceResourceGroupsResult> getAnalyticsInstanceResourceGroups(GetAnalyticsInstanceResourceGroupsArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: oci:Analytics/getAnalyticsInstanceResourceGroups:getAnalyticsInstanceResourceGroups
      arguments:
        # arguments dictionary
    data "oci_analytics_get_analytics_instance_resource_groups" "name" {
        # arguments
    }

    The following arguments are supported:

    AnalyticsInstanceId string
    The OCID of the Analytics instance.
    Filters List<GetAnalyticsInstanceResourceGroupsFilter>
    Name string
    A filter to return only resources that match the given name exactly.
    AnalyticsInstanceId string
    The OCID of the Analytics instance.
    Filters []GetAnalyticsInstanceResourceGroupsFilter
    Name string
    A filter to return only resources that match the given name exactly.
    analytics_instance_id string
    The OCID of the Analytics instance.
    filters list(object)
    name string
    A filter to return only resources that match the given name exactly.
    analyticsInstanceId String
    The OCID of the Analytics instance.
    filters List<GetInstanceResourceGroupsFilter>
    name String
    A filter to return only resources that match the given name exactly.
    analyticsInstanceId string
    The OCID of the Analytics instance.
    filters GetAnalyticsInstanceResourceGroupsFilter[]
    name string
    A filter to return only resources that match the given name exactly.
    analytics_instance_id str
    The OCID of the Analytics instance.
    filters Sequence[GetAnalyticsInstanceResourceGroupsFilter]
    name str
    A filter to return only resources that match the given name exactly.
    analyticsInstanceId String
    The OCID of the Analytics instance.
    filters List<Property Map>
    name String
    A filter to return only resources that match the given name exactly.

    getAnalyticsInstanceResourceGroups Result

    The following output properties are available:

    AnalyticsInstanceId string
    Id string
    The provider-assigned unique ID for this managed resource.
    InstanceResourceGroups List<GetAnalyticsInstanceResourceGroupsInstanceResourceGroup>
    The list of instance_resource_groups.
    Filters List<GetAnalyticsInstanceResourceGroupsFilter>
    Name string
    AnalyticsInstanceId string
    Id string
    The provider-assigned unique ID for this managed resource.
    InstanceResourceGroups []GetAnalyticsInstanceResourceGroupsInstanceResourceGroup
    The list of instance_resource_groups.
    Filters []GetAnalyticsInstanceResourceGroupsFilter
    Name string
    analytics_instance_id string
    id string
    The provider-assigned unique ID for this managed resource.
    instance_resource_groups list(object)
    The list of instance_resource_groups.
    filters list(object)
    name string
    analyticsInstanceId String
    id String
    The provider-assigned unique ID for this managed resource.
    instanceResourceGroups List<GetInstanceResourceGroupsInstanceResourceGroup>
    The list of instance_resource_groups.
    filters List<GetInstanceResourceGroupsFilter>
    name String
    analyticsInstanceId string
    id string
    The provider-assigned unique ID for this managed resource.
    instanceResourceGroups GetAnalyticsInstanceResourceGroupsInstanceResourceGroup[]
    The list of instance_resource_groups.
    filters GetAnalyticsInstanceResourceGroupsFilter[]
    name string
    analyticsInstanceId String
    id String
    The provider-assigned unique ID for this managed resource.
    instanceResourceGroups List<Property Map>
    The list of instance_resource_groups.
    filters List<Property Map>
    name String

    Supporting Types

    GetAnalyticsInstanceResourceGroupsFilter

    Name string
    A filter to return only resources that match the given name exactly.
    Values List<string>
    Regex bool
    Name string
    A filter to return only resources that match the given name exactly.
    Values []string
    Regex bool
    name string
    A filter to return only resources that match the given name exactly.
    values list(string)
    regex bool
    name String
    A filter to return only resources that match the given name exactly.
    values List<String>
    regex Boolean
    name string
    A filter to return only resources that match the given name exactly.
    values string[]
    regex boolean
    name str
    A filter to return only resources that match the given name exactly.
    values Sequence[str]
    regex bool
    name String
    A filter to return only resources that match the given name exactly.
    values List<String>
    regex Boolean

    GetAnalyticsInstanceResourceGroupsInstanceResourceGroup

    AnalyticsInstanceId string
    The OCID of the Analytics instance.
    Capacity int
    The capacity (in OCPU's) to be allocated for this resource.
    Description string
    Optional description of the resource group
    DisplayName string
    Meaningful name of resource group for end user
    Id string
    Unique identifier and name of resource group. Must be unique within the instance
    ResourceName string
    Meaningful name of resource group for end user
    AnalyticsInstanceId string
    The OCID of the Analytics instance.
    Capacity int
    The capacity (in OCPU's) to be allocated for this resource.
    Description string
    Optional description of the resource group
    DisplayName string
    Meaningful name of resource group for end user
    Id string
    Unique identifier and name of resource group. Must be unique within the instance
    ResourceName string
    Meaningful name of resource group for end user
    analytics_instance_id string
    The OCID of the Analytics instance.
    capacity number
    The capacity (in OCPU's) to be allocated for this resource.
    description string
    Optional description of the resource group
    display_name string
    Meaningful name of resource group for end user
    id string
    Unique identifier and name of resource group. Must be unique within the instance
    resource_name string
    Meaningful name of resource group for end user
    analyticsInstanceId String
    The OCID of the Analytics instance.
    capacity Integer
    The capacity (in OCPU's) to be allocated for this resource.
    description String
    Optional description of the resource group
    displayName String
    Meaningful name of resource group for end user
    id String
    Unique identifier and name of resource group. Must be unique within the instance
    resourceName String
    Meaningful name of resource group for end user
    analyticsInstanceId string
    The OCID of the Analytics instance.
    capacity number
    The capacity (in OCPU's) to be allocated for this resource.
    description string
    Optional description of the resource group
    displayName string
    Meaningful name of resource group for end user
    id string
    Unique identifier and name of resource group. Must be unique within the instance
    resourceName string
    Meaningful name of resource group for end user
    analytics_instance_id str
    The OCID of the Analytics instance.
    capacity int
    The capacity (in OCPU's) to be allocated for this resource.
    description str
    Optional description of the resource group
    display_name str
    Meaningful name of resource group for end user
    id str
    Unique identifier and name of resource group. Must be unique within the instance
    resource_name str
    Meaningful name of resource group for end user
    analyticsInstanceId String
    The OCID of the Analytics instance.
    capacity Number
    The capacity (in OCPU's) to be allocated for this resource.
    description String
    Optional description of the resource group
    displayName String
    Meaningful name of resource group for end user
    id String
    Unique identifier and name of resource group. Must be unique within the instance
    resourceName String
    Meaningful name of resource group for end user

    Package Details

    Repository
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo oci logo
    Viewing docs for Oracle Cloud Infrastructure v4.21.0
    published on Monday, Aug 24, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial