1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Database
  5. CloudVmClusterIormConfig
Oracle Cloud Infrastructure v1.29.0 published on Thursday, Mar 28, 2024 by Pulumi

oci.Database.CloudVmClusterIormConfig

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.29.0 published on Thursday, Mar 28, 2024 by Pulumi

    This resource provides the Cloud Vm Cluster Iorm Config resource in Oracle Cloud Infrastructure Database service.

    Updates IORM settings for the specified Cloud Vm Cluster.

    The UpdateCloudVmClusterIormConfig API is used for Cloud Vm Cluster.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testCloudVmClusterIormConfig = new oci.database.CloudVmClusterIormConfig("testCloudVmClusterIormConfig", {
        dbPlans: [{
            dbName: _var.cloud_vm_cluster_iorm_config_db_plans_db_name,
            share: _var.cloud_vm_cluster_iorm_config_db_plans_share,
        }],
        cloudVmClusterId: oci_database_cloud_vm_cluster.test_cloud_vm_cluster.id,
        objective: "AUTO",
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_cloud_vm_cluster_iorm_config = oci.database.CloudVmClusterIormConfig("testCloudVmClusterIormConfig",
        db_plans=[oci.database.CloudVmClusterIormConfigDbPlanArgs(
            db_name=var["cloud_vm_cluster_iorm_config_db_plans_db_name"],
            share=var["cloud_vm_cluster_iorm_config_db_plans_share"],
        )],
        cloud_vm_cluster_id=oci_database_cloud_vm_cluster["test_cloud_vm_cluster"]["id"],
        objective="AUTO")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/go/oci/Database"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := Database.NewCloudVmClusterIormConfig(ctx, "testCloudVmClusterIormConfig", &Database.CloudVmClusterIormConfigArgs{
    			DbPlans: database.CloudVmClusterIormConfigDbPlanArray{
    				&database.CloudVmClusterIormConfigDbPlanArgs{
    					DbName: pulumi.Any(_var.Cloud_vm_cluster_iorm_config_db_plans_db_name),
    					Share:  pulumi.Any(_var.Cloud_vm_cluster_iorm_config_db_plans_share),
    				},
    			},
    			CloudVmClusterId: pulumi.Any(oci_database_cloud_vm_cluster.Test_cloud_vm_cluster.Id),
    			Objective:        pulumi.String("AUTO"),
    		})
    		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 testCloudVmClusterIormConfig = new Oci.Database.CloudVmClusterIormConfig("testCloudVmClusterIormConfig", new()
        {
            DbPlans = new[]
            {
                new Oci.Database.Inputs.CloudVmClusterIormConfigDbPlanArgs
                {
                    DbName = @var.Cloud_vm_cluster_iorm_config_db_plans_db_name,
                    Share = @var.Cloud_vm_cluster_iorm_config_db_plans_share,
                },
            },
            CloudVmClusterId = oci_database_cloud_vm_cluster.Test_cloud_vm_cluster.Id,
            Objective = "AUTO",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.Database.CloudVmClusterIormConfig;
    import com.pulumi.oci.Database.CloudVmClusterIormConfigArgs;
    import com.pulumi.oci.Database.inputs.CloudVmClusterIormConfigDbPlanArgs;
    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 testCloudVmClusterIormConfig = new CloudVmClusterIormConfig("testCloudVmClusterIormConfig", CloudVmClusterIormConfigArgs.builder()        
                .dbPlans(CloudVmClusterIormConfigDbPlanArgs.builder()
                    .dbName(var_.cloud_vm_cluster_iorm_config_db_plans_db_name())
                    .share(var_.cloud_vm_cluster_iorm_config_db_plans_share())
                    .build())
                .cloudVmClusterId(oci_database_cloud_vm_cluster.test_cloud_vm_cluster().id())
                .objective("AUTO")
                .build());
    
        }
    }
    
    resources:
      testCloudVmClusterIormConfig:
        type: oci:Database:CloudVmClusterIormConfig
        properties:
          #Required
          dbPlans:
            - dbName: ${var.cloud_vm_cluster_iorm_config_db_plans_db_name}
              share: ${var.cloud_vm_cluster_iorm_config_db_plans_share}
          cloudVmClusterId: ${oci_database_cloud_vm_cluster.test_cloud_vm_cluster.id}
          #Optional
          objective: AUTO
    

    Create CloudVmClusterIormConfig Resource

    new CloudVmClusterIormConfig(name: string, args: CloudVmClusterIormConfigArgs, opts?: CustomResourceOptions);
    @overload
    def CloudVmClusterIormConfig(resource_name: str,
                                 opts: Optional[ResourceOptions] = None,
                                 cloud_vm_cluster_id: Optional[str] = None,
                                 db_plans: Optional[Sequence[_database.CloudVmClusterIormConfigDbPlanArgs]] = None,
                                 objective: Optional[str] = None)
    @overload
    def CloudVmClusterIormConfig(resource_name: str,
                                 args: CloudVmClusterIormConfigArgs,
                                 opts: Optional[ResourceOptions] = None)
    func NewCloudVmClusterIormConfig(ctx *Context, name string, args CloudVmClusterIormConfigArgs, opts ...ResourceOption) (*CloudVmClusterIormConfig, error)
    public CloudVmClusterIormConfig(string name, CloudVmClusterIormConfigArgs args, CustomResourceOptions? opts = null)
    public CloudVmClusterIormConfig(String name, CloudVmClusterIormConfigArgs args)
    public CloudVmClusterIormConfig(String name, CloudVmClusterIormConfigArgs args, CustomResourceOptions options)
    
    type: oci:Database:CloudVmClusterIormConfig
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    name string
    The unique name of the resource.
    args CloudVmClusterIormConfigArgs
    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 CloudVmClusterIormConfigArgs
    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 CloudVmClusterIormConfigArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args CloudVmClusterIormConfigArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args CloudVmClusterIormConfigArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    CloudVmClusterIormConfig 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 CloudVmClusterIormConfig resource accepts the following input properties:

    CloudVmClusterId string
    The Cluster OCID.
    DbPlans List<CloudVmClusterIormConfigDbPlan>
    (Updatable) Array of IORM Setting for all the database in this Cloud Vm Cluster
    Objective string
    (Updatable) Value for the IORM objective Default is "Auto"
    CloudVmClusterId string
    The Cluster OCID.
    DbPlans []CloudVmClusterIormConfigDbPlanArgs
    (Updatable) Array of IORM Setting for all the database in this Cloud Vm Cluster
    Objective string
    (Updatable) Value for the IORM objective Default is "Auto"
    cloudVmClusterId String
    The Cluster OCID.
    dbPlans List<CloudVmClusterIormConfigDbPlan>
    (Updatable) Array of IORM Setting for all the database in this Cloud Vm Cluster
    objective String
    (Updatable) Value for the IORM objective Default is "Auto"
    cloudVmClusterId string
    The Cluster OCID.
    dbPlans CloudVmClusterIormConfigDbPlan[]
    (Updatable) Array of IORM Setting for all the database in this Cloud Vm Cluster
    objective string
    (Updatable) Value for the IORM objective Default is "Auto"
    cloud_vm_cluster_id str
    The Cluster OCID.
    db_plans CloudVmClusterIormConfigDbPlanArgs]
    (Updatable) Array of IORM Setting for all the database in this Cloud Vm Cluster
    objective str
    (Updatable) Value for the IORM objective Default is "Auto"
    cloudVmClusterId String
    The Cluster OCID.
    dbPlans List<Property Map>
    (Updatable) Array of IORM Setting for all the database in this Cloud Vm Cluster
    objective String
    (Updatable) Value for the IORM objective Default is "Auto"

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    LifecycleDetails string
    Additional information about the current lifecycleState.
    State string
    The current state of IORM configuration for the Exadata DB system.
    Id string
    The provider-assigned unique ID for this managed resource.
    LifecycleDetails string
    Additional information about the current lifecycleState.
    State string
    The current state of IORM configuration for the Exadata DB system.
    id String
    The provider-assigned unique ID for this managed resource.
    lifecycleDetails String
    Additional information about the current lifecycleState.
    state String
    The current state of IORM configuration for the Exadata DB system.
    id string
    The provider-assigned unique ID for this managed resource.
    lifecycleDetails string
    Additional information about the current lifecycleState.
    state string
    The current state of IORM configuration for the Exadata DB system.
    id str
    The provider-assigned unique ID for this managed resource.
    lifecycle_details str
    Additional information about the current lifecycleState.
    state str
    The current state of IORM configuration for the Exadata DB system.
    id String
    The provider-assigned unique ID for this managed resource.
    lifecycleDetails String
    Additional information about the current lifecycleState.
    state String
    The current state of IORM configuration for the Exadata DB system.

    Look up Existing CloudVmClusterIormConfig Resource

    Get an existing CloudVmClusterIormConfig 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?: CloudVmClusterIormConfigState, opts?: CustomResourceOptions): CloudVmClusterIormConfig
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            cloud_vm_cluster_id: Optional[str] = None,
            db_plans: Optional[Sequence[_database.CloudVmClusterIormConfigDbPlanArgs]] = None,
            lifecycle_details: Optional[str] = None,
            objective: Optional[str] = None,
            state: Optional[str] = None) -> CloudVmClusterIormConfig
    func GetCloudVmClusterIormConfig(ctx *Context, name string, id IDInput, state *CloudVmClusterIormConfigState, opts ...ResourceOption) (*CloudVmClusterIormConfig, error)
    public static CloudVmClusterIormConfig Get(string name, Input<string> id, CloudVmClusterIormConfigState? state, CustomResourceOptions? opts = null)
    public static CloudVmClusterIormConfig get(String name, Output<String> id, CloudVmClusterIormConfigState 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:
    CloudVmClusterId string
    The Cluster OCID.
    DbPlans List<CloudVmClusterIormConfigDbPlan>
    (Updatable) Array of IORM Setting for all the database in this Cloud Vm Cluster
    LifecycleDetails string
    Additional information about the current lifecycleState.
    Objective string
    (Updatable) Value for the IORM objective Default is "Auto"
    State string
    The current state of IORM configuration for the Exadata DB system.
    CloudVmClusterId string
    The Cluster OCID.
    DbPlans []CloudVmClusterIormConfigDbPlanArgs
    (Updatable) Array of IORM Setting for all the database in this Cloud Vm Cluster
    LifecycleDetails string
    Additional information about the current lifecycleState.
    Objective string
    (Updatable) Value for the IORM objective Default is "Auto"
    State string
    The current state of IORM configuration for the Exadata DB system.
    cloudVmClusterId String
    The Cluster OCID.
    dbPlans List<CloudVmClusterIormConfigDbPlan>
    (Updatable) Array of IORM Setting for all the database in this Cloud Vm Cluster
    lifecycleDetails String
    Additional information about the current lifecycleState.
    objective String
    (Updatable) Value for the IORM objective Default is "Auto"
    state String
    The current state of IORM configuration for the Exadata DB system.
    cloudVmClusterId string
    The Cluster OCID.
    dbPlans CloudVmClusterIormConfigDbPlan[]
    (Updatable) Array of IORM Setting for all the database in this Cloud Vm Cluster
    lifecycleDetails string
    Additional information about the current lifecycleState.
    objective string
    (Updatable) Value for the IORM objective Default is "Auto"
    state string
    The current state of IORM configuration for the Exadata DB system.
    cloud_vm_cluster_id str
    The Cluster OCID.
    db_plans CloudVmClusterIormConfigDbPlanArgs]
    (Updatable) Array of IORM Setting for all the database in this Cloud Vm Cluster
    lifecycle_details str
    Additional information about the current lifecycleState.
    objective str
    (Updatable) Value for the IORM objective Default is "Auto"
    state str
    The current state of IORM configuration for the Exadata DB system.
    cloudVmClusterId String
    The Cluster OCID.
    dbPlans List<Property Map>
    (Updatable) Array of IORM Setting for all the database in this Cloud Vm Cluster
    lifecycleDetails String
    Additional information about the current lifecycleState.
    objective String
    (Updatable) Value for the IORM objective Default is "Auto"
    state String
    The current state of IORM configuration for the Exadata DB system.

    Supporting Types

    CloudVmClusterIormConfigDbPlan, CloudVmClusterIormConfigDbPlanArgs

    DbName string
    (Updatable) The database name. For the default DbPlan, the dbName is default.
    Share int
    (Updatable) The relative priority of this database.
    FlashCacheLimit string
    The flash cache limit for this database. This value is internally configured based on the share value assigned to the database.
    DbName string
    (Updatable) The database name. For the default DbPlan, the dbName is default.
    Share int
    (Updatable) The relative priority of this database.
    FlashCacheLimit string
    The flash cache limit for this database. This value is internally configured based on the share value assigned to the database.
    dbName String
    (Updatable) The database name. For the default DbPlan, the dbName is default.
    share Integer
    (Updatable) The relative priority of this database.
    flashCacheLimit String
    The flash cache limit for this database. This value is internally configured based on the share value assigned to the database.
    dbName string
    (Updatable) The database name. For the default DbPlan, the dbName is default.
    share number
    (Updatable) The relative priority of this database.
    flashCacheLimit string
    The flash cache limit for this database. This value is internally configured based on the share value assigned to the database.
    db_name str
    (Updatable) The database name. For the default DbPlan, the dbName is default.
    share int
    (Updatable) The relative priority of this database.
    flash_cache_limit str
    The flash cache limit for this database. This value is internally configured based on the share value assigned to the database.
    dbName String
    (Updatable) The database name. For the default DbPlan, the dbName is default.
    share Number
    (Updatable) The relative priority of this database.
    flashCacheLimit String
    The flash cache limit for this database. This value is internally configured based on the share value assigned to the database.

    Import

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

    $ pulumi import oci:Database/cloudVmClusterIormConfig:CloudVmClusterIormConfig test_cloud_vm_cluster_iorm_config "cloudVmClusters/{cloudVmClusterId}/CloudVmClusterIormConfig"
    

    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 v1.29.0 published on Thursday, Mar 28, 2024 by Pulumi