published on Monday, Aug 24, 2026 by Pulumi
published on Monday, Aug 24, 2026 by Pulumi
This resource provides the Analytics Instance Resource Group resource in Oracle Cloud Infrastructure Analytics service. Api doc link for the resource: https://docs.oracle.com/iaas/api/#/en/analytics/latest/ResourceGroup
Example terraform configs related to the resource : https://github.com/oracle/terraform-provider-oci/tree/master/examples/analytics
Create a new resource group for the instance
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testAnalyticsInstanceResourceGroup = new oci.analytics.AnalyticsInstanceResourceGroup("test_analytics_instance_resource_group", {
analyticsInstanceId: testAnalyticsInstance.id,
capacity: Number(analyticsInstanceResourceGroupCapacity),
resourceName: testResource.name,
description: analyticsInstanceResourceGroupDescription,
displayName: analyticsInstanceResourceGroupDisplayName,
});
import pulumi
import pulumi_oci as oci
test_analytics_instance_resource_group = oci.analytics.AnalyticsInstanceResourceGroup("test_analytics_instance_resource_group",
analytics_instance_id=test_analytics_instance["id"],
capacity=int(analytics_instance_resource_group_capacity),
resource_name_=test_resource["name"],
description=analytics_instance_resource_group_description,
display_name=analytics_instance_resource_group_display_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.NewAnalyticsInstanceResourceGroup(ctx, "test_analytics_instance_resource_group", &analytics.AnalyticsInstanceResourceGroupArgs{
AnalyticsInstanceId: pulumi.Any(testAnalyticsInstance.Id),
Capacity: pulumi.Any(analyticsInstanceResourceGroupCapacity),
ResourceName: pulumi.Any(testResource.Name),
Description: pulumi.Any(analyticsInstanceResourceGroupDescription),
DisplayName: pulumi.Any(analyticsInstanceResourceGroupDisplayName),
})
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 testAnalyticsInstanceResourceGroup = new Oci.Analytics.AnalyticsInstanceResourceGroup("test_analytics_instance_resource_group", new()
{
AnalyticsInstanceId = testAnalyticsInstance.Id,
Capacity = analyticsInstanceResourceGroupCapacity,
ResourceName = testResource.Name,
Description = analyticsInstanceResourceGroupDescription,
DisplayName = analyticsInstanceResourceGroupDisplayName,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.Analytics.AnalyticsInstanceResourceGroup;
import com.pulumi.oci.Analytics.AnalyticsInstanceResourceGroupArgs;
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) {
var testAnalyticsInstanceResourceGroup = new AnalyticsInstanceResourceGroup("testAnalyticsInstanceResourceGroup", AnalyticsInstanceResourceGroupArgs.builder()
.analyticsInstanceId(testAnalyticsInstance.id())
.capacity(analyticsInstanceResourceGroupCapacity)
.resourceName(testResource.name())
.description(analyticsInstanceResourceGroupDescription)
.displayName(analyticsInstanceResourceGroupDisplayName)
.build());
}
}
resources:
testAnalyticsInstanceResourceGroup:
type: oci:Analytics:AnalyticsInstanceResourceGroup
name: test_analytics_instance_resource_group
properties:
analyticsInstanceId: ${testAnalyticsInstance.id}
capacity: ${analyticsInstanceResourceGroupCapacity}
resourceName: ${testResource.name}
description: ${analyticsInstanceResourceGroupDescription}
displayName: ${analyticsInstanceResourceGroupDisplayName}
pulumi {
required_providers {
oci = {
source = "pulumi/oci"
}
}
}
resource "oci_analytics_analyticsinstanceresourcegroup" "test_analytics_instance_resource_group" {
analytics_instance_id = testAnalyticsInstance.id
capacity = analyticsInstanceResourceGroupCapacity
resource_name = testResource.name
description = analyticsInstanceResourceGroupDescription
display_name = analyticsInstanceResourceGroupDisplayName
}
Create AnalyticsInstanceResourceGroup Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AnalyticsInstanceResourceGroup(name: string, args: AnalyticsInstanceResourceGroupArgs, opts?: CustomResourceOptions);@overload
def AnalyticsInstanceResourceGroup(resource_name: str,
args: AnalyticsInstanceResourceGroupInitArgs,
opts: Optional[ResourceOptions] = None)
@overload
def AnalyticsInstanceResourceGroup(resource_name: str,
opts: Optional[ResourceOptions] = None,
analytics_instance_id: Optional[str] = None,
capacity: Optional[int] = None,
resource_name_: Optional[str] = None,
description: Optional[str] = None,
display_name: Optional[str] = None)func NewAnalyticsInstanceResourceGroup(ctx *Context, name string, args AnalyticsInstanceResourceGroupArgs, opts ...ResourceOption) (*AnalyticsInstanceResourceGroup, error)public AnalyticsInstanceResourceGroup(string name, AnalyticsInstanceResourceGroupArgs args, CustomResourceOptions? opts = null)
public AnalyticsInstanceResourceGroup(String name, AnalyticsInstanceResourceGroupArgs args)
public AnalyticsInstanceResourceGroup(String name, AnalyticsInstanceResourceGroupArgs args, CustomResourceOptions options)
type: oci:Analytics:AnalyticsInstanceResourceGroup
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "oci_analytics_analytics_instance_resource_group" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args AnalyticsInstanceResourceGroupArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args AnalyticsInstanceResourceGroupInitArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args AnalyticsInstanceResourceGroupArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AnalyticsInstanceResourceGroupArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AnalyticsInstanceResourceGroupArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var analyticsInstanceResourceGroupResource = new Oci.Analytics.AnalyticsInstanceResourceGroup("analyticsInstanceResourceGroupResource", new()
{
AnalyticsInstanceId = "string",
Capacity = 0,
ResourceName = "string",
Description = "string",
DisplayName = "string",
});
example, err := analytics.NewAnalyticsInstanceResourceGroup(ctx, "analyticsInstanceResourceGroupResource", &analytics.AnalyticsInstanceResourceGroupArgs{
AnalyticsInstanceId: pulumi.String("string"),
Capacity: pulumi.Int(0),
ResourceName: pulumi.String("string"),
Description: pulumi.String("string"),
DisplayName: pulumi.String("string"),
})
resource "oci_analytics_analytics_instance_resource_group" "analyticsInstanceResourceGroupResource" {
lifecycle {
create_before_destroy = true
}
analytics_instance_id = "string"
capacity = 0
resource_name = "string"
description = "string"
display_name = "string"
}
var analyticsInstanceResourceGroupResource = new AnalyticsInstanceResourceGroup("analyticsInstanceResourceGroupResource", AnalyticsInstanceResourceGroupArgs.builder()
.analyticsInstanceId("string")
.capacity(0)
.resourceName("string")
.description("string")
.displayName("string")
.build());
analytics_instance_resource_group_resource = oci.analytics.AnalyticsInstanceResourceGroup("analyticsInstanceResourceGroupResource",
analytics_instance_id="string",
capacity=0,
resource_name_="string",
description="string",
display_name="string")
const analyticsInstanceResourceGroupResource = new oci.analytics.AnalyticsInstanceResourceGroup("analyticsInstanceResourceGroupResource", {
analyticsInstanceId: "string",
capacity: 0,
resourceName: "string",
description: "string",
displayName: "string",
});
type: oci:Analytics:AnalyticsInstanceResourceGroup
properties:
analyticsInstanceId: string
capacity: 0
description: string
displayName: string
resourceName: string
AnalyticsInstanceResourceGroup Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The AnalyticsInstanceResourceGroup resource accepts the following input properties:
- Analytics
Instance stringId - The OCID of the Analytics instance.
- Capacity int
- (Updatable) The capacity (in OCPU's) to be allocated for this resource.
- Resource
Name string (Updatable) Meaningful name of resource group for end user
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- Description string
- (Updatable) Optional description of the resource group
- Display
Name string - (Updatable) Meaningful name of resource group for end user
- Analytics
Instance stringId - The OCID of the Analytics instance.
- Capacity int
- (Updatable) The capacity (in OCPU's) to be allocated for this resource.
- Resource
Name string (Updatable) Meaningful name of resource group for end user
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- Description string
- (Updatable) Optional description of the resource group
- Display
Name string - (Updatable) Meaningful name of resource group for end user
- analytics_
instance_ stringid - The OCID of the Analytics instance.
- capacity number
- (Updatable) The capacity (in OCPU's) to be allocated for this resource.
- resource_
name string (Updatable) Meaningful name of resource group for end user
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- description string
- (Updatable) Optional description of the resource group
- display_
name string - (Updatable) Meaningful name of resource group for end user
- analytics
Instance StringId - The OCID of the Analytics instance.
- capacity Integer
- (Updatable) The capacity (in OCPU's) to be allocated for this resource.
- resource
Name String (Updatable) Meaningful name of resource group for end user
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- description String
- (Updatable) Optional description of the resource group
- display
Name String - (Updatable) Meaningful name of resource group for end user
- analytics
Instance stringId - The OCID of the Analytics instance.
- capacity number
- (Updatable) The capacity (in OCPU's) to be allocated for this resource.
- resource
Name string (Updatable) Meaningful name of resource group for end user
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- description string
- (Updatable) Optional description of the resource group
- display
Name string - (Updatable) Meaningful name of resource group for end user
- analytics_
instance_ strid - The OCID of the Analytics instance.
- capacity int
- (Updatable) The capacity (in OCPU's) to be allocated for this resource.
- resource_
name str (Updatable) Meaningful name of resource group for end user
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- description str
- (Updatable) Optional description of the resource group
- display_
name str - (Updatable) Meaningful name of resource group for end user
- analytics
Instance StringId - The OCID of the Analytics instance.
- capacity Number
- (Updatable) The capacity (in OCPU's) to be allocated for this resource.
- resource
Name String (Updatable) Meaningful name of resource group for end user
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- description String
- (Updatable) Optional description of the resource group
- display
Name String - (Updatable) Meaningful name of resource group for end user
Outputs
All input properties are implicitly available as output properties. Additionally, the AnalyticsInstanceResourceGroup resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing AnalyticsInstanceResourceGroup Resource
Get an existing AnalyticsInstanceResourceGroup resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: AnalyticsInstanceResourceGroupState, opts?: CustomResourceOptions): AnalyticsInstanceResourceGroup@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
analytics_instance_id: Optional[str] = None,
capacity: Optional[int] = None,
description: Optional[str] = None,
display_name: Optional[str] = None,
resource_name: Optional[str] = None) -> AnalyticsInstanceResourceGroupfunc GetAnalyticsInstanceResourceGroup(ctx *Context, name string, id IDInput, state *AnalyticsInstanceResourceGroupState, opts ...ResourceOption) (*AnalyticsInstanceResourceGroup, error)public static AnalyticsInstanceResourceGroup Get(string name, Input<string> id, AnalyticsInstanceResourceGroupState? state, CustomResourceOptions? opts = null)public static AnalyticsInstanceResourceGroup get(String name, Output<String> id, AnalyticsInstanceResourceGroupState state, CustomResourceOptions options)resources: _: type: oci:Analytics:AnalyticsInstanceResourceGroup get: id: ${id}import {
to = oci_analytics_analytics_instance_resource_group.example
id = "${id}"
}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Analytics
Instance stringId - The OCID of the Analytics instance.
- Capacity int
- (Updatable) The capacity (in OCPU's) to be allocated for this resource.
- Description string
- (Updatable) Optional description of the resource group
- Display
Name string - (Updatable) Meaningful name of resource group for end user
- Resource
Name string (Updatable) Meaningful name of resource group for end user
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- Analytics
Instance stringId - The OCID of the Analytics instance.
- Capacity int
- (Updatable) The capacity (in OCPU's) to be allocated for this resource.
- Description string
- (Updatable) Optional description of the resource group
- Display
Name string - (Updatable) Meaningful name of resource group for end user
- Resource
Name string (Updatable) Meaningful name of resource group for end user
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- analytics_
instance_ stringid - The OCID of the Analytics instance.
- capacity number
- (Updatable) The capacity (in OCPU's) to be allocated for this resource.
- description string
- (Updatable) Optional description of the resource group
- display_
name string - (Updatable) Meaningful name of resource group for end user
- resource_
name string (Updatable) Meaningful name of resource group for end user
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- analytics
Instance StringId - The OCID of the Analytics instance.
- capacity Integer
- (Updatable) The capacity (in OCPU's) to be allocated for this resource.
- description String
- (Updatable) Optional description of the resource group
- display
Name String - (Updatable) Meaningful name of resource group for end user
- resource
Name String (Updatable) Meaningful name of resource group for end user
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- analytics
Instance stringId - The OCID of the Analytics instance.
- capacity number
- (Updatable) The capacity (in OCPU's) to be allocated for this resource.
- description string
- (Updatable) Optional description of the resource group
- display
Name string - (Updatable) Meaningful name of resource group for end user
- resource
Name string (Updatable) Meaningful name of resource group for end user
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- analytics_
instance_ strid - The OCID of the Analytics instance.
- capacity int
- (Updatable) The capacity (in OCPU's) to be allocated for this resource.
- description str
- (Updatable) Optional description of the resource group
- display_
name str - (Updatable) Meaningful name of resource group for end user
- resource_
name str (Updatable) Meaningful name of resource group for end user
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- analytics
Instance StringId - The OCID of the Analytics instance.
- capacity Number
- (Updatable) The capacity (in OCPU's) to be allocated for this resource.
- description String
- (Updatable) Optional description of the resource group
- display
Name String - (Updatable) Meaningful name of resource group for end user
- resource
Name String (Updatable) Meaningful name of resource group for end user
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
Import
AnalyticsInstanceResourceGroups can be imported using the id, e.g.
$ pulumi import oci:Analytics/analyticsInstanceResourceGroup:AnalyticsInstanceResourceGroup test_analytics_instance_resource_group "analyticsInstances/{analyticsInstanceId}/resourceGroups/{analyticsInstanceResourceGroupId}"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ociTerraform Provider.
published on Monday, Aug 24, 2026 by Pulumi