1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. DatabaseManagement
  5. ManagedDatabaseGroup
Oracle Cloud Infrastructure v2.3.0 published on Wednesday, Jul 17, 2024 by Pulumi

oci.DatabaseManagement.ManagedDatabaseGroup

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.3.0 published on Wednesday, Jul 17, 2024 by Pulumi

    This resource provides the Managed Database Group resource in Oracle Cloud Infrastructure Database Management service.

    Creates a Managed Database Group. The group does not contain any Managed Databases when it is created, and they must be added later.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testManagedDatabaseGroup = new oci.databasemanagement.ManagedDatabaseGroup("test_managed_database_group", {
        compartmentId: compartmentId,
        name: managedDatabaseGroupName,
        definedTags: {
            "Operations.CostCenter": "42",
        },
        description: managedDatabaseGroupDescription,
        freeformTags: {
            Department: "Finance",
        },
        managedDatabases: [{
            id: managedDatabaseId,
        }],
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_managed_database_group = oci.database_management.ManagedDatabaseGroup("test_managed_database_group",
        compartment_id=compartment_id,
        name=managed_database_group_name,
        defined_tags={
            "Operations.CostCenter": "42",
        },
        description=managed_database_group_description,
        freeform_tags={
            "Department": "Finance",
        },
        managed_databases=[oci.database_management.ManagedDatabaseGroupManagedDatabaseArgs(
            id=managed_database_id,
        )])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/DatabaseManagement"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := DatabaseManagement.NewManagedDatabaseGroup(ctx, "test_managed_database_group", &DatabaseManagement.ManagedDatabaseGroupArgs{
    			CompartmentId: pulumi.Any(compartmentId),
    			Name:          pulumi.Any(managedDatabaseGroupName),
    			DefinedTags: pulumi.Map{
    				"Operations.CostCenter": pulumi.Any("42"),
    			},
    			Description: pulumi.Any(managedDatabaseGroupDescription),
    			FreeformTags: pulumi.Map{
    				"Department": pulumi.Any("Finance"),
    			},
    			ManagedDatabases: databasemanagement.ManagedDatabaseGroupManagedDatabaseArray{
    				&databasemanagement.ManagedDatabaseGroupManagedDatabaseArgs{
    					Id: pulumi.Any(managedDatabaseId),
    				},
    			},
    		})
    		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 testManagedDatabaseGroup = new Oci.DatabaseManagement.ManagedDatabaseGroup("test_managed_database_group", new()
        {
            CompartmentId = compartmentId,
            Name = managedDatabaseGroupName,
            DefinedTags = 
            {
                { "Operations.CostCenter", "42" },
            },
            Description = managedDatabaseGroupDescription,
            FreeformTags = 
            {
                { "Department", "Finance" },
            },
            ManagedDatabases = new[]
            {
                new Oci.DatabaseManagement.Inputs.ManagedDatabaseGroupManagedDatabaseArgs
                {
                    Id = managedDatabaseId,
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.DatabaseManagement.ManagedDatabaseGroup;
    import com.pulumi.oci.DatabaseManagement.ManagedDatabaseGroupArgs;
    import com.pulumi.oci.DatabaseManagement.inputs.ManagedDatabaseGroupManagedDatabaseArgs;
    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) {
            var testManagedDatabaseGroup = new ManagedDatabaseGroup("testManagedDatabaseGroup", ManagedDatabaseGroupArgs.builder()
                .compartmentId(compartmentId)
                .name(managedDatabaseGroupName)
                .definedTags(Map.of("Operations.CostCenter", "42"))
                .description(managedDatabaseGroupDescription)
                .freeformTags(Map.of("Department", "Finance"))
                .managedDatabases(ManagedDatabaseGroupManagedDatabaseArgs.builder()
                    .id(managedDatabaseId)
                    .build())
                .build());
    
        }
    }
    
    resources:
      testManagedDatabaseGroup:
        type: oci:DatabaseManagement:ManagedDatabaseGroup
        name: test_managed_database_group
        properties:
          compartmentId: ${compartmentId}
          name: ${managedDatabaseGroupName}
          definedTags:
            Operations.CostCenter: '42'
          description: ${managedDatabaseGroupDescription}
          freeformTags:
            Department: Finance
          managedDatabases:
            - id: ${managedDatabaseId}
    

    Create ManagedDatabaseGroup Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new ManagedDatabaseGroup(name: string, args: ManagedDatabaseGroupArgs, opts?: CustomResourceOptions);
    @overload
    def ManagedDatabaseGroup(resource_name: str,
                             args: ManagedDatabaseGroupArgs,
                             opts: Optional[ResourceOptions] = None)
    
    @overload
    def ManagedDatabaseGroup(resource_name: str,
                             opts: Optional[ResourceOptions] = None,
                             compartment_id: Optional[str] = None,
                             defined_tags: Optional[Mapping[str, Any]] = None,
                             description: Optional[str] = None,
                             freeform_tags: Optional[Mapping[str, Any]] = None,
                             managed_databases: Optional[Sequence[_databasemanagement.ManagedDatabaseGroupManagedDatabaseArgs]] = None,
                             name: Optional[str] = None)
    func NewManagedDatabaseGroup(ctx *Context, name string, args ManagedDatabaseGroupArgs, opts ...ResourceOption) (*ManagedDatabaseGroup, error)
    public ManagedDatabaseGroup(string name, ManagedDatabaseGroupArgs args, CustomResourceOptions? opts = null)
    public ManagedDatabaseGroup(String name, ManagedDatabaseGroupArgs args)
    public ManagedDatabaseGroup(String name, ManagedDatabaseGroupArgs args, CustomResourceOptions options)
    
    type: oci:DatabaseManagement:ManagedDatabaseGroup
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args ManagedDatabaseGroupArgs
    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 ManagedDatabaseGroupArgs
    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 ManagedDatabaseGroupArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ManagedDatabaseGroupArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ManagedDatabaseGroupArgs
    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 managedDatabaseGroupResource = new Oci.DatabaseManagement.ManagedDatabaseGroup("managedDatabaseGroupResource", new()
    {
        CompartmentId = "string",
        DefinedTags = 
        {
            { "string", "any" },
        },
        Description = "string",
        FreeformTags = 
        {
            { "string", "any" },
        },
        ManagedDatabases = new[]
        {
            new Oci.DatabaseManagement.Inputs.ManagedDatabaseGroupManagedDatabaseArgs
            {
                CompartmentId = "string",
                DatabaseSubType = "string",
                DatabaseType = "string",
                DefinedTags = 
                {
                    { "string", "any" },
                },
                DeploymentType = "string",
                FreeformTags = 
                {
                    { "string", "any" },
                },
                Id = "string",
                Name = "string",
                SystemTags = 
                {
                    { "string", "any" },
                },
                TimeAdded = "string",
                WorkloadType = "string",
            },
        },
        Name = "string",
    });
    
    example, err := DatabaseManagement.NewManagedDatabaseGroup(ctx, "managedDatabaseGroupResource", &DatabaseManagement.ManagedDatabaseGroupArgs{
    	CompartmentId: pulumi.String("string"),
    	DefinedTags: pulumi.Map{
    		"string": pulumi.Any("any"),
    	},
    	Description: pulumi.String("string"),
    	FreeformTags: pulumi.Map{
    		"string": pulumi.Any("any"),
    	},
    	ManagedDatabases: databasemanagement.ManagedDatabaseGroupManagedDatabaseArray{
    		&databasemanagement.ManagedDatabaseGroupManagedDatabaseArgs{
    			CompartmentId:   pulumi.String("string"),
    			DatabaseSubType: pulumi.String("string"),
    			DatabaseType:    pulumi.String("string"),
    			DefinedTags: pulumi.Map{
    				"string": pulumi.Any("any"),
    			},
    			DeploymentType: pulumi.String("string"),
    			FreeformTags: pulumi.Map{
    				"string": pulumi.Any("any"),
    			},
    			Id:   pulumi.String("string"),
    			Name: pulumi.String("string"),
    			SystemTags: pulumi.Map{
    				"string": pulumi.Any("any"),
    			},
    			TimeAdded:    pulumi.String("string"),
    			WorkloadType: pulumi.String("string"),
    		},
    	},
    	Name: pulumi.String("string"),
    })
    
    var managedDatabaseGroupResource = new ManagedDatabaseGroup("managedDatabaseGroupResource", ManagedDatabaseGroupArgs.builder()
        .compartmentId("string")
        .definedTags(Map.of("string", "any"))
        .description("string")
        .freeformTags(Map.of("string", "any"))
        .managedDatabases(ManagedDatabaseGroupManagedDatabaseArgs.builder()
            .compartmentId("string")
            .databaseSubType("string")
            .databaseType("string")
            .definedTags(Map.of("string", "any"))
            .deploymentType("string")
            .freeformTags(Map.of("string", "any"))
            .id("string")
            .name("string")
            .systemTags(Map.of("string", "any"))
            .timeAdded("string")
            .workloadType("string")
            .build())
        .name("string")
        .build());
    
    managed_database_group_resource = oci.database_management.ManagedDatabaseGroup("managedDatabaseGroupResource",
        compartment_id="string",
        defined_tags={
            "string": "any",
        },
        description="string",
        freeform_tags={
            "string": "any",
        },
        managed_databases=[oci.database_management.ManagedDatabaseGroupManagedDatabaseArgs(
            compartment_id="string",
            database_sub_type="string",
            database_type="string",
            defined_tags={
                "string": "any",
            },
            deployment_type="string",
            freeform_tags={
                "string": "any",
            },
            id="string",
            name="string",
            system_tags={
                "string": "any",
            },
            time_added="string",
            workload_type="string",
        )],
        name="string")
    
    const managedDatabaseGroupResource = new oci.databasemanagement.ManagedDatabaseGroup("managedDatabaseGroupResource", {
        compartmentId: "string",
        definedTags: {
            string: "any",
        },
        description: "string",
        freeformTags: {
            string: "any",
        },
        managedDatabases: [{
            compartmentId: "string",
            databaseSubType: "string",
            databaseType: "string",
            definedTags: {
                string: "any",
            },
            deploymentType: "string",
            freeformTags: {
                string: "any",
            },
            id: "string",
            name: "string",
            systemTags: {
                string: "any",
            },
            timeAdded: "string",
            workloadType: "string",
        }],
        name: "string",
    });
    
    type: oci:DatabaseManagement:ManagedDatabaseGroup
    properties:
        compartmentId: string
        definedTags:
            string: any
        description: string
        freeformTags:
            string: any
        managedDatabases:
            - compartmentId: string
              databaseSubType: string
              databaseType: string
              definedTags:
                string: any
              deploymentType: string
              freeformTags:
                string: any
              id: string
              name: string
              systemTags:
                string: any
              timeAdded: string
              workloadType: string
        name: string
    

    ManagedDatabaseGroup Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The ManagedDatabaseGroup resource accepts the following input properties:

    CompartmentId string
    (Updatable) The OCID of the compartment in which the Managed Database Group resides.
    DefinedTags Dictionary<string, object>
    (Updatable) 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
    (Updatable) The information specified by the user about the Managed Database Group.
    FreeformTags Dictionary<string, object>
    (Updatable) 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"}
    ManagedDatabases List<ManagedDatabaseGroupManagedDatabase>
    (Updatable) Set of Managed Databases that the user wants to add to the Managed Database Group. Specifying a block will add the Managed Database to Managed Database Group and removing the block will remove Managed Database from the Managed Database Group.
    Name string
    The name of the Managed Database Group. Valid characters are uppercase or lowercase letters, numbers, and "_". The name of the Managed Database Group cannot be modified. It must be unique in the compartment and must begin with an alphabetic character.
    CompartmentId string
    (Updatable) The OCID of the compartment in which the Managed Database Group resides.
    DefinedTags map[string]interface{}
    (Updatable) 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
    (Updatable) The information specified by the user about the Managed Database Group.
    FreeformTags map[string]interface{}
    (Updatable) 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"}
    ManagedDatabases []ManagedDatabaseGroupManagedDatabaseArgs
    (Updatable) Set of Managed Databases that the user wants to add to the Managed Database Group. Specifying a block will add the Managed Database to Managed Database Group and removing the block will remove Managed Database from the Managed Database Group.
    Name string
    The name of the Managed Database Group. Valid characters are uppercase or lowercase letters, numbers, and "_". The name of the Managed Database Group cannot be modified. It must be unique in the compartment and must begin with an alphabetic character.
    compartmentId String
    (Updatable) The OCID of the compartment in which the Managed Database Group resides.
    definedTags Map<String,Object>
    (Updatable) 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
    (Updatable) The information specified by the user about the Managed Database Group.
    freeformTags Map<String,Object>
    (Updatable) 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"}
    managedDatabases List<ManagedDatabaseGroupManagedDatabase>
    (Updatable) Set of Managed Databases that the user wants to add to the Managed Database Group. Specifying a block will add the Managed Database to Managed Database Group and removing the block will remove Managed Database from the Managed Database Group.
    name String
    The name of the Managed Database Group. Valid characters are uppercase or lowercase letters, numbers, and "_". The name of the Managed Database Group cannot be modified. It must be unique in the compartment and must begin with an alphabetic character.
    compartmentId string
    (Updatable) The OCID of the compartment in which the Managed Database Group resides.
    definedTags {[key: string]: any}
    (Updatable) 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
    (Updatable) The information specified by the user about the Managed Database Group.
    freeformTags {[key: string]: any}
    (Updatable) 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"}
    managedDatabases ManagedDatabaseGroupManagedDatabase[]
    (Updatable) Set of Managed Databases that the user wants to add to the Managed Database Group. Specifying a block will add the Managed Database to Managed Database Group and removing the block will remove Managed Database from the Managed Database Group.
    name string
    The name of the Managed Database Group. Valid characters are uppercase or lowercase letters, numbers, and "_". The name of the Managed Database Group cannot be modified. It must be unique in the compartment and must begin with an alphabetic character.
    compartment_id str
    (Updatable) The OCID of the compartment in which the Managed Database Group resides.
    defined_tags Mapping[str, Any]
    (Updatable) 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
    (Updatable) The information specified by the user about the Managed Database Group.
    freeform_tags Mapping[str, Any]
    (Updatable) 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"}
    managed_databases Sequence[databasemanagement.ManagedDatabaseGroupManagedDatabaseArgs]
    (Updatable) Set of Managed Databases that the user wants to add to the Managed Database Group. Specifying a block will add the Managed Database to Managed Database Group and removing the block will remove Managed Database from the Managed Database Group.
    name str
    The name of the Managed Database Group. Valid characters are uppercase or lowercase letters, numbers, and "_". The name of the Managed Database Group cannot be modified. It must be unique in the compartment and must begin with an alphabetic character.
    compartmentId String
    (Updatable) The OCID of the compartment in which the Managed Database Group resides.
    definedTags Map<Any>
    (Updatable) 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
    (Updatable) The information specified by the user about the Managed Database Group.
    freeformTags Map<Any>
    (Updatable) 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"}
    managedDatabases List<Property Map>
    (Updatable) Set of Managed Databases that the user wants to add to the Managed Database Group. Specifying a block will add the Managed Database to Managed Database Group and removing the block will remove Managed Database from the Managed Database Group.
    name String
    The name of the Managed Database Group. Valid characters are uppercase or lowercase letters, numbers, and "_". The name of the Managed Database Group cannot be modified. It must be unique in the compartment and must begin with an alphabetic character.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the ManagedDatabaseGroup resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    State string
    The current lifecycle state of the Managed Database Group.
    SystemTags Dictionary<string, object>
    System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. System tags can be viewed by users, but can only be created by the system. Example: {"orcl-cloud.free-tier-retained": "true"}
    TimeCreated string
    The date and time the Managed Database Group was created.
    TimeUpdated string
    The date and time the Managed Database Group was last updated.
    Id string
    The provider-assigned unique ID for this managed resource.
    State string
    The current lifecycle state of the Managed Database Group.
    SystemTags map[string]interface{}
    System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. System tags can be viewed by users, but can only be created by the system. Example: {"orcl-cloud.free-tier-retained": "true"}
    TimeCreated string
    The date and time the Managed Database Group was created.
    TimeUpdated string
    The date and time the Managed Database Group was last updated.
    id String
    The provider-assigned unique ID for this managed resource.
    state String
    The current lifecycle state of the Managed Database Group.
    systemTags Map<String,Object>
    System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. System tags can be viewed by users, but can only be created by the system. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated String
    The date and time the Managed Database Group was created.
    timeUpdated String
    The date and time the Managed Database Group was last updated.
    id string
    The provider-assigned unique ID for this managed resource.
    state string
    The current lifecycle state of the Managed Database Group.
    systemTags {[key: string]: any}
    System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. System tags can be viewed by users, but can only be created by the system. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated string
    The date and time the Managed Database Group was created.
    timeUpdated string
    The date and time the Managed Database Group was last updated.
    id str
    The provider-assigned unique ID for this managed resource.
    state str
    The current lifecycle state of the Managed Database Group.
    system_tags Mapping[str, Any]
    System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. System tags can be viewed by users, but can only be created by the system. Example: {"orcl-cloud.free-tier-retained": "true"}
    time_created str
    The date and time the Managed Database Group was created.
    time_updated str
    The date and time the Managed Database Group was last updated.
    id String
    The provider-assigned unique ID for this managed resource.
    state String
    The current lifecycle state of the Managed Database Group.
    systemTags Map<Any>
    System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. System tags can be viewed by users, but can only be created by the system. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated String
    The date and time the Managed Database Group was created.
    timeUpdated String
    The date and time the Managed Database Group was last updated.

    Look up Existing ManagedDatabaseGroup Resource

    Get an existing ManagedDatabaseGroup 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?: ManagedDatabaseGroupState, opts?: CustomResourceOptions): ManagedDatabaseGroup
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            compartment_id: Optional[str] = None,
            defined_tags: Optional[Mapping[str, Any]] = None,
            description: Optional[str] = None,
            freeform_tags: Optional[Mapping[str, Any]] = None,
            managed_databases: Optional[Sequence[_databasemanagement.ManagedDatabaseGroupManagedDatabaseArgs]] = None,
            name: Optional[str] = None,
            state: Optional[str] = None,
            system_tags: Optional[Mapping[str, Any]] = None,
            time_created: Optional[str] = None,
            time_updated: Optional[str] = None) -> ManagedDatabaseGroup
    func GetManagedDatabaseGroup(ctx *Context, name string, id IDInput, state *ManagedDatabaseGroupState, opts ...ResourceOption) (*ManagedDatabaseGroup, error)
    public static ManagedDatabaseGroup Get(string name, Input<string> id, ManagedDatabaseGroupState? state, CustomResourceOptions? opts = null)
    public static ManagedDatabaseGroup get(String name, Output<String> id, ManagedDatabaseGroupState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    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.
    The following state arguments are supported:
    CompartmentId string
    (Updatable) The OCID of the compartment in which the Managed Database Group resides.
    DefinedTags Dictionary<string, object>
    (Updatable) 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
    (Updatable) The information specified by the user about the Managed Database Group.
    FreeformTags Dictionary<string, object>
    (Updatable) 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"}
    ManagedDatabases List<ManagedDatabaseGroupManagedDatabase>
    (Updatable) Set of Managed Databases that the user wants to add to the Managed Database Group. Specifying a block will add the Managed Database to Managed Database Group and removing the block will remove Managed Database from the Managed Database Group.
    Name string
    The name of the Managed Database Group. Valid characters are uppercase or lowercase letters, numbers, and "_". The name of the Managed Database Group cannot be modified. It must be unique in the compartment and must begin with an alphabetic character.
    State string
    The current lifecycle state of the Managed Database Group.
    SystemTags Dictionary<string, object>
    System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. System tags can be viewed by users, but can only be created by the system. Example: {"orcl-cloud.free-tier-retained": "true"}
    TimeCreated string
    The date and time the Managed Database Group was created.
    TimeUpdated string
    The date and time the Managed Database Group was last updated.
    CompartmentId string
    (Updatable) The OCID of the compartment in which the Managed Database Group resides.
    DefinedTags map[string]interface{}
    (Updatable) 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
    (Updatable) The information specified by the user about the Managed Database Group.
    FreeformTags map[string]interface{}
    (Updatable) 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"}
    ManagedDatabases []ManagedDatabaseGroupManagedDatabaseArgs
    (Updatable) Set of Managed Databases that the user wants to add to the Managed Database Group. Specifying a block will add the Managed Database to Managed Database Group and removing the block will remove Managed Database from the Managed Database Group.
    Name string
    The name of the Managed Database Group. Valid characters are uppercase or lowercase letters, numbers, and "_". The name of the Managed Database Group cannot be modified. It must be unique in the compartment and must begin with an alphabetic character.
    State string
    The current lifecycle state of the Managed Database Group.
    SystemTags map[string]interface{}
    System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. System tags can be viewed by users, but can only be created by the system. Example: {"orcl-cloud.free-tier-retained": "true"}
    TimeCreated string
    The date and time the Managed Database Group was created.
    TimeUpdated string
    The date and time the Managed Database Group was last updated.
    compartmentId String
    (Updatable) The OCID of the compartment in which the Managed Database Group resides.
    definedTags Map<String,Object>
    (Updatable) 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
    (Updatable) The information specified by the user about the Managed Database Group.
    freeformTags Map<String,Object>
    (Updatable) 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"}
    managedDatabases List<ManagedDatabaseGroupManagedDatabase>
    (Updatable) Set of Managed Databases that the user wants to add to the Managed Database Group. Specifying a block will add the Managed Database to Managed Database Group and removing the block will remove Managed Database from the Managed Database Group.
    name String
    The name of the Managed Database Group. Valid characters are uppercase or lowercase letters, numbers, and "_". The name of the Managed Database Group cannot be modified. It must be unique in the compartment and must begin with an alphabetic character.
    state String
    The current lifecycle state of the Managed Database Group.
    systemTags Map<String,Object>
    System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. System tags can be viewed by users, but can only be created by the system. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated String
    The date and time the Managed Database Group was created.
    timeUpdated String
    The date and time the Managed Database Group was last updated.
    compartmentId string
    (Updatable) The OCID of the compartment in which the Managed Database Group resides.
    definedTags {[key: string]: any}
    (Updatable) 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
    (Updatable) The information specified by the user about the Managed Database Group.
    freeformTags {[key: string]: any}
    (Updatable) 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"}
    managedDatabases ManagedDatabaseGroupManagedDatabase[]
    (Updatable) Set of Managed Databases that the user wants to add to the Managed Database Group. Specifying a block will add the Managed Database to Managed Database Group and removing the block will remove Managed Database from the Managed Database Group.
    name string
    The name of the Managed Database Group. Valid characters are uppercase or lowercase letters, numbers, and "_". The name of the Managed Database Group cannot be modified. It must be unique in the compartment and must begin with an alphabetic character.
    state string
    The current lifecycle state of the Managed Database Group.
    systemTags {[key: string]: any}
    System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. System tags can be viewed by users, but can only be created by the system. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated string
    The date and time the Managed Database Group was created.
    timeUpdated string
    The date and time the Managed Database Group was last updated.
    compartment_id str
    (Updatable) The OCID of the compartment in which the Managed Database Group resides.
    defined_tags Mapping[str, Any]
    (Updatable) 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
    (Updatable) The information specified by the user about the Managed Database Group.
    freeform_tags Mapping[str, Any]
    (Updatable) 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"}
    managed_databases Sequence[databasemanagement.ManagedDatabaseGroupManagedDatabaseArgs]
    (Updatable) Set of Managed Databases that the user wants to add to the Managed Database Group. Specifying a block will add the Managed Database to Managed Database Group and removing the block will remove Managed Database from the Managed Database Group.
    name str
    The name of the Managed Database Group. Valid characters are uppercase or lowercase letters, numbers, and "_". The name of the Managed Database Group cannot be modified. It must be unique in the compartment and must begin with an alphabetic character.
    state str
    The current lifecycle state of the Managed Database Group.
    system_tags Mapping[str, Any]
    System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. System tags can be viewed by users, but can only be created by the system. Example: {"orcl-cloud.free-tier-retained": "true"}
    time_created str
    The date and time the Managed Database Group was created.
    time_updated str
    The date and time the Managed Database Group was last updated.
    compartmentId String
    (Updatable) The OCID of the compartment in which the Managed Database Group resides.
    definedTags Map<Any>
    (Updatable) 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
    (Updatable) The information specified by the user about the Managed Database Group.
    freeformTags Map<Any>
    (Updatable) 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"}
    managedDatabases List<Property Map>
    (Updatable) Set of Managed Databases that the user wants to add to the Managed Database Group. Specifying a block will add the Managed Database to Managed Database Group and removing the block will remove Managed Database from the Managed Database Group.
    name String
    The name of the Managed Database Group. Valid characters are uppercase or lowercase letters, numbers, and "_". The name of the Managed Database Group cannot be modified. It must be unique in the compartment and must begin with an alphabetic character.
    state String
    The current lifecycle state of the Managed Database Group.
    systemTags Map<Any>
    System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. System tags can be viewed by users, but can only be created by the system. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated String
    The date and time the Managed Database Group was created.
    timeUpdated String
    The date and time the Managed Database Group was last updated.

    Supporting Types

    ManagedDatabaseGroupManagedDatabase, ManagedDatabaseGroupManagedDatabaseArgs

    CompartmentId string
    (Updatable) The OCID of the compartment in which the Managed Database Group resides.
    DatabaseSubType string
    The subtype of the Oracle Database. Indicates whether the database is a Container Database, Pluggable Database, Non-container Database, Autonomous Database, or Autonomous Container Database.
    DatabaseType string
    The type of Oracle Database installation.
    DefinedTags Dictionary<string, object>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    DeploymentType string
    The infrastructure used to deploy the Oracle Database.
    FreeformTags Dictionary<string, object>
    (Updatable) 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 managed database that needs to be added to the Managed Database Group.

    ** 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

    Name string
    The name of the Managed Database Group. Valid characters are uppercase or lowercase letters, numbers, and "_". The name of the Managed Database Group cannot be modified. It must be unique in the compartment and must begin with an alphabetic character.
    SystemTags Dictionary<string, object>
    System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. System tags can be viewed by users, but can only be created by the system. Example: {"orcl-cloud.free-tier-retained": "true"}
    TimeAdded string
    The date and time the Managed Database was added to the group.
    WorkloadType string
    The workload type of the Autonomous Database.
    CompartmentId string
    (Updatable) The OCID of the compartment in which the Managed Database Group resides.
    DatabaseSubType string
    The subtype of the Oracle Database. Indicates whether the database is a Container Database, Pluggable Database, Non-container Database, Autonomous Database, or Autonomous Container Database.
    DatabaseType string
    The type of Oracle Database installation.
    DefinedTags map[string]interface{}
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    DeploymentType string
    The infrastructure used to deploy the Oracle Database.
    FreeformTags map[string]interface{}
    (Updatable) 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 managed database that needs to be added to the Managed Database Group.

    ** 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

    Name string
    The name of the Managed Database Group. Valid characters are uppercase or lowercase letters, numbers, and "_". The name of the Managed Database Group cannot be modified. It must be unique in the compartment and must begin with an alphabetic character.
    SystemTags map[string]interface{}
    System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. System tags can be viewed by users, but can only be created by the system. Example: {"orcl-cloud.free-tier-retained": "true"}
    TimeAdded string
    The date and time the Managed Database was added to the group.
    WorkloadType string
    The workload type of the Autonomous Database.
    compartmentId String
    (Updatable) The OCID of the compartment in which the Managed Database Group resides.
    databaseSubType String
    The subtype of the Oracle Database. Indicates whether the database is a Container Database, Pluggable Database, Non-container Database, Autonomous Database, or Autonomous Container Database.
    databaseType String
    The type of Oracle Database installation.
    definedTags Map<String,Object>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    deploymentType String
    The infrastructure used to deploy the Oracle Database.
    freeformTags Map<String,Object>
    (Updatable) 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 managed database that needs to be added to the Managed Database Group.

    ** 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

    name String
    The name of the Managed Database Group. Valid characters are uppercase or lowercase letters, numbers, and "_". The name of the Managed Database Group cannot be modified. It must be unique in the compartment and must begin with an alphabetic character.
    systemTags Map<String,Object>
    System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. System tags can be viewed by users, but can only be created by the system. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeAdded String
    The date and time the Managed Database was added to the group.
    workloadType String
    The workload type of the Autonomous Database.
    compartmentId string
    (Updatable) The OCID of the compartment in which the Managed Database Group resides.
    databaseSubType string
    The subtype of the Oracle Database. Indicates whether the database is a Container Database, Pluggable Database, Non-container Database, Autonomous Database, or Autonomous Container Database.
    databaseType string
    The type of Oracle Database installation.
    definedTags {[key: string]: any}
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    deploymentType string
    The infrastructure used to deploy the Oracle Database.
    freeformTags {[key: string]: any}
    (Updatable) 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 managed database that needs to be added to the Managed Database Group.

    ** 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

    name string
    The name of the Managed Database Group. Valid characters are uppercase or lowercase letters, numbers, and "_". The name of the Managed Database Group cannot be modified. It must be unique in the compartment and must begin with an alphabetic character.
    systemTags {[key: string]: any}
    System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. System tags can be viewed by users, but can only be created by the system. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeAdded string
    The date and time the Managed Database was added to the group.
    workloadType string
    The workload type of the Autonomous Database.
    compartment_id str
    (Updatable) The OCID of the compartment in which the Managed Database Group resides.
    database_sub_type str
    The subtype of the Oracle Database. Indicates whether the database is a Container Database, Pluggable Database, Non-container Database, Autonomous Database, or Autonomous Container Database.
    database_type str
    The type of Oracle Database installation.
    defined_tags Mapping[str, Any]
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    deployment_type str
    The infrastructure used to deploy the Oracle Database.
    freeform_tags Mapping[str, Any]
    (Updatable) 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 managed database that needs to be added to the Managed Database Group.

    ** 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

    name str
    The name of the Managed Database Group. Valid characters are uppercase or lowercase letters, numbers, and "_". The name of the Managed Database Group cannot be modified. It must be unique in the compartment and must begin with an alphabetic character.
    system_tags Mapping[str, Any]
    System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. System tags can be viewed by users, but can only be created by the system. Example: {"orcl-cloud.free-tier-retained": "true"}
    time_added str
    The date and time the Managed Database was added to the group.
    workload_type str
    The workload type of the Autonomous Database.
    compartmentId String
    (Updatable) The OCID of the compartment in which the Managed Database Group resides.
    databaseSubType String
    The subtype of the Oracle Database. Indicates whether the database is a Container Database, Pluggable Database, Non-container Database, Autonomous Database, or Autonomous Container Database.
    databaseType String
    The type of Oracle Database installation.
    definedTags Map<Any>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    deploymentType String
    The infrastructure used to deploy the Oracle Database.
    freeformTags Map<Any>
    (Updatable) 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 managed database that needs to be added to the Managed Database Group.

    ** 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

    name String
    The name of the Managed Database Group. Valid characters are uppercase or lowercase letters, numbers, and "_". The name of the Managed Database Group cannot be modified. It must be unique in the compartment and must begin with an alphabetic character.
    systemTags Map<Any>
    System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. System tags can be viewed by users, but can only be created by the system. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeAdded String
    The date and time the Managed Database was added to the group.
    workloadType String
    The workload type of the Autonomous Database.

    Import

    ManagedDatabaseGroups can be imported using the id, e.g.

    $ pulumi import oci:DatabaseManagement/managedDatabaseGroup:ManagedDatabaseGroup test_managed_database_group "id"
    

    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 oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v2.3.0 published on Wednesday, Jul 17, 2024 by Pulumi