1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Database
  5. CloudVmClusterIormConfig
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi

oci.Database.CloudVmClusterIormConfig

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 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("test_cloud_vm_cluster_iorm_config", {
        dbPlans: [{
            dbName: cloudVmClusterIormConfigDbPlansDbName,
            share: cloudVmClusterIormConfigDbPlansShare,
        }],
        cloudVmClusterId: testCloudVmCluster.id,
        objective: "AUTO",
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_cloud_vm_cluster_iorm_config = oci.database.CloudVmClusterIormConfig("test_cloud_vm_cluster_iorm_config",
        db_plans=[oci.database.CloudVmClusterIormConfigDbPlanArgs(
            db_name=cloud_vm_cluster_iorm_config_db_plans_db_name,
            share=cloud_vm_cluster_iorm_config_db_plans_share,
        )],
        cloud_vm_cluster_id=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, "test_cloud_vm_cluster_iorm_config", &Database.CloudVmClusterIormConfigArgs{
    			DbPlans: database.CloudVmClusterIormConfigDbPlanArray{
    				&database.CloudVmClusterIormConfigDbPlanArgs{
    					DbName: pulumi.Any(cloudVmClusterIormConfigDbPlansDbName),
    					Share:  pulumi.Any(cloudVmClusterIormConfigDbPlansShare),
    				},
    			},
    			CloudVmClusterId: pulumi.Any(testCloudVmCluster.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("test_cloud_vm_cluster_iorm_config", new()
        {
            DbPlans = new[]
            {
                new Oci.Database.Inputs.CloudVmClusterIormConfigDbPlanArgs
                {
                    DbName = cloudVmClusterIormConfigDbPlansDbName,
                    Share = cloudVmClusterIormConfigDbPlansShare,
                },
            },
            CloudVmClusterId = testCloudVmCluster.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(cloudVmClusterIormConfigDbPlansDbName)
                    .share(cloudVmClusterIormConfigDbPlansShare)
                    .build())
                .cloudVmClusterId(testCloudVmCluster.id())
                .objective("AUTO")
                .build());
    
        }
    }
    
    resources:
      testCloudVmClusterIormConfig:
        type: oci:Database:CloudVmClusterIormConfig
        name: test_cloud_vm_cluster_iorm_config
        properties:
          dbPlans:
            - dbName: ${cloudVmClusterIormConfigDbPlansDbName}
              share: ${cloudVmClusterIormConfigDbPlansShare}
          cloudVmClusterId: ${testCloudVmCluster.id}
          objective: AUTO
    

    Create CloudVmClusterIormConfig Resource

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

    Constructor syntax

    new CloudVmClusterIormConfig(name: string, args: CloudVmClusterIormConfigArgs, opts?: CustomResourceOptions);
    @overload
    def CloudVmClusterIormConfig(resource_name: str,
                                 args: CloudVmClusterIormConfigArgs,
                                 opts: Optional[ResourceOptions] = None)
    
    @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)
    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.
    
    

    Parameters

    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.

    Example

    The following reference example uses placeholder values for all input properties.

    var cloudVmClusterIormConfigResource = new Oci.Database.CloudVmClusterIormConfig("cloudVmClusterIormConfigResource", new()
    {
        CloudVmClusterId = "string",
        DbPlans = new[]
        {
            new Oci.Database.Inputs.CloudVmClusterIormConfigDbPlanArgs
            {
                DbName = "string",
                Share = 0,
                FlashCacheLimit = "string",
            },
        },
        Objective = "string",
    });
    
    example, err := Database.NewCloudVmClusterIormConfig(ctx, "cloudVmClusterIormConfigResource", &Database.CloudVmClusterIormConfigArgs{
    	CloudVmClusterId: pulumi.String("string"),
    	DbPlans: database.CloudVmClusterIormConfigDbPlanArray{
    		&database.CloudVmClusterIormConfigDbPlanArgs{
    			DbName:          pulumi.String("string"),
    			Share:           pulumi.Int(0),
    			FlashCacheLimit: pulumi.String("string"),
    		},
    	},
    	Objective: pulumi.String("string"),
    })
    
    var cloudVmClusterIormConfigResource = new CloudVmClusterIormConfig("cloudVmClusterIormConfigResource", CloudVmClusterIormConfigArgs.builder()
        .cloudVmClusterId("string")
        .dbPlans(CloudVmClusterIormConfigDbPlanArgs.builder()
            .dbName("string")
            .share(0)
            .flashCacheLimit("string")
            .build())
        .objective("string")
        .build());
    
    cloud_vm_cluster_iorm_config_resource = oci.database.CloudVmClusterIormConfig("cloudVmClusterIormConfigResource",
        cloud_vm_cluster_id="string",
        db_plans=[oci.database.CloudVmClusterIormConfigDbPlanArgs(
            db_name="string",
            share=0,
            flash_cache_limit="string",
        )],
        objective="string")
    
    const cloudVmClusterIormConfigResource = new oci.database.CloudVmClusterIormConfig("cloudVmClusterIormConfigResource", {
        cloudVmClusterId: "string",
        dbPlans: [{
            dbName: "string",
            share: 0,
            flashCacheLimit: "string",
        }],
        objective: "string",
    });
    
    type: oci:Database:CloudVmClusterIormConfig
    properties:
        cloudVmClusterId: string
        dbPlans:
            - dbName: string
              flashCacheLimit: string
              share: 0
        objective: string
    

    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 Sequence[database.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 Sequence[database.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"
    

    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 v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi