1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Database
  5. ExadataIormConfig
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

oci.Database.ExadataIormConfig

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

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

    Updates IORM settings for the specified Exadata DB system.

    Note: Deprecated for Exadata Cloud Service systems. Use the new resource model APIs instead.

    For Exadata Cloud Service instances, support for this API will end on May 15th, 2021. See Switching an Exadata DB System to the New Resource Model and APIs for details on converting existing Exadata DB systems to the new resource model.

    The UpdateCloudVmClusterIormConfig API is used for Exadata systems using the new resource model.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testExadataIormConfig = new oci.database.ExadataIormConfig("test_exadata_iorm_config", {
        dbPlans: [{
            dbName: exadataIormConfigDbPlansDbName,
            share: exadataIormConfigDbPlansShare,
        }],
        dbSystemId: testDbSystem.id,
        objective: "AUTO",
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_exadata_iorm_config = oci.database.ExadataIormConfig("test_exadata_iorm_config",
        db_plans=[{
            "db_name": exadata_iorm_config_db_plans_db_name,
            "share": exadata_iorm_config_db_plans_share,
        }],
        db_system_id=test_db_system["id"],
        objective="AUTO")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/Database"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := Database.NewExadataIormConfig(ctx, "test_exadata_iorm_config", &Database.ExadataIormConfigArgs{
    			DbPlans: database.ExadataIormConfigDbPlanArray{
    				&database.ExadataIormConfigDbPlanArgs{
    					DbName: pulumi.Any(exadataIormConfigDbPlansDbName),
    					Share:  pulumi.Any(exadataIormConfigDbPlansShare),
    				},
    			},
    			DbSystemId: pulumi.Any(testDbSystem.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 testExadataIormConfig = new Oci.Database.ExadataIormConfig("test_exadata_iorm_config", new()
        {
            DbPlans = new[]
            {
                new Oci.Database.Inputs.ExadataIormConfigDbPlanArgs
                {
                    DbName = exadataIormConfigDbPlansDbName,
                    Share = exadataIormConfigDbPlansShare,
                },
            },
            DbSystemId = testDbSystem.Id,
            Objective = "AUTO",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.Database.ExadataIormConfig;
    import com.pulumi.oci.Database.ExadataIormConfigArgs;
    import com.pulumi.oci.Database.inputs.ExadataIormConfigDbPlanArgs;
    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 testExadataIormConfig = new ExadataIormConfig("testExadataIormConfig", ExadataIormConfigArgs.builder()
                .dbPlans(ExadataIormConfigDbPlanArgs.builder()
                    .dbName(exadataIormConfigDbPlansDbName)
                    .share(exadataIormConfigDbPlansShare)
                    .build())
                .dbSystemId(testDbSystem.id())
                .objective("AUTO")
                .build());
    
        }
    }
    
    resources:
      testExadataIormConfig:
        type: oci:Database:ExadataIormConfig
        name: test_exadata_iorm_config
        properties:
          dbPlans:
            - dbName: ${exadataIormConfigDbPlansDbName}
              share: ${exadataIormConfigDbPlansShare}
          dbSystemId: ${testDbSystem.id}
          objective: AUTO
    

    Create ExadataIormConfig Resource

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

    Constructor syntax

    new ExadataIormConfig(name: string, args: ExadataIormConfigArgs, opts?: CustomResourceOptions);
    @overload
    def ExadataIormConfig(resource_name: str,
                          args: ExadataIormConfigArgs,
                          opts: Optional[ResourceOptions] = None)
    
    @overload
    def ExadataIormConfig(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          db_plans: Optional[Sequence[_database.ExadataIormConfigDbPlanArgs]] = None,
                          db_system_id: Optional[str] = None,
                          objective: Optional[str] = None)
    func NewExadataIormConfig(ctx *Context, name string, args ExadataIormConfigArgs, opts ...ResourceOption) (*ExadataIormConfig, error)
    public ExadataIormConfig(string name, ExadataIormConfigArgs args, CustomResourceOptions? opts = null)
    public ExadataIormConfig(String name, ExadataIormConfigArgs args)
    public ExadataIormConfig(String name, ExadataIormConfigArgs args, CustomResourceOptions options)
    
    type: oci:Database:ExadataIormConfig
    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 ExadataIormConfigArgs
    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 ExadataIormConfigArgs
    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 ExadataIormConfigArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ExadataIormConfigArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ExadataIormConfigArgs
    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 exadataIormConfigResource = new Oci.Database.ExadataIormConfig("exadataIormConfigResource", new()
    {
        DbPlans = new[]
        {
            new Oci.Database.Inputs.ExadataIormConfigDbPlanArgs
            {
                DbName = "string",
                Share = 0,
                FlashCacheLimit = "string",
            },
        },
        DbSystemId = "string",
        Objective = "string",
    });
    
    example, err := Database.NewExadataIormConfig(ctx, "exadataIormConfigResource", &Database.ExadataIormConfigArgs{
    	DbPlans: database.ExadataIormConfigDbPlanArray{
    		&database.ExadataIormConfigDbPlanArgs{
    			DbName:          pulumi.String("string"),
    			Share:           pulumi.Int(0),
    			FlashCacheLimit: pulumi.String("string"),
    		},
    	},
    	DbSystemId: pulumi.String("string"),
    	Objective:  pulumi.String("string"),
    })
    
    var exadataIormConfigResource = new ExadataIormConfig("exadataIormConfigResource", ExadataIormConfigArgs.builder()
        .dbPlans(ExadataIormConfigDbPlanArgs.builder()
            .dbName("string")
            .share(0)
            .flashCacheLimit("string")
            .build())
        .dbSystemId("string")
        .objective("string")
        .build());
    
    exadata_iorm_config_resource = oci.database.ExadataIormConfig("exadataIormConfigResource",
        db_plans=[{
            "db_name": "string",
            "share": 0,
            "flash_cache_limit": "string",
        }],
        db_system_id="string",
        objective="string")
    
    const exadataIormConfigResource = new oci.database.ExadataIormConfig("exadataIormConfigResource", {
        dbPlans: [{
            dbName: "string",
            share: 0,
            flashCacheLimit: "string",
        }],
        dbSystemId: "string",
        objective: "string",
    });
    
    type: oci:Database:ExadataIormConfig
    properties:
        dbPlans:
            - dbName: string
              flashCacheLimit: string
              share: 0
        dbSystemId: string
        objective: string
    

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

    DbPlans List<ExadataIormConfigDbPlan>
    (Updatable) Array of IORM Setting for all the database in this Exadata DB System
    DbSystemId string
    (Updatable) The DB system OCID.
    Objective string

    (Updatable) Value for the IORM objective Default is "Auto"

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

    DbPlans []ExadataIormConfigDbPlanArgs
    (Updatable) Array of IORM Setting for all the database in this Exadata DB System
    DbSystemId string
    (Updatable) The DB system OCID.
    Objective string

    (Updatable) Value for the IORM objective Default is "Auto"

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

    dbPlans List<ExadataIormConfigDbPlan>
    (Updatable) Array of IORM Setting for all the database in this Exadata DB System
    dbSystemId String
    (Updatable) The DB system OCID.
    objective String

    (Updatable) Value for the IORM objective Default is "Auto"

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

    dbPlans ExadataIormConfigDbPlan[]
    (Updatable) Array of IORM Setting for all the database in this Exadata DB System
    dbSystemId string
    (Updatable) The DB system OCID.
    objective string

    (Updatable) Value for the IORM objective Default is "Auto"

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

    db_plans Sequence[database.ExadataIormConfigDbPlanArgs]
    (Updatable) Array of IORM Setting for all the database in this Exadata DB System
    db_system_id str
    (Updatable) The DB system OCID.
    objective str

    (Updatable) Value for the IORM objective Default is "Auto"

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

    dbPlans List<Property Map>
    (Updatable) Array of IORM Setting for all the database in this Exadata DB System
    dbSystemId String
    (Updatable) The DB system OCID.
    objective String

    (Updatable) Value for the IORM objective Default is "Auto"

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

    Outputs

    All input properties are implicitly available as output properties. Additionally, the ExadataIormConfig 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 ExadataIormConfig Resource

    Get an existing ExadataIormConfig 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?: ExadataIormConfigState, opts?: CustomResourceOptions): ExadataIormConfig
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            db_plans: Optional[Sequence[_database.ExadataIormConfigDbPlanArgs]] = None,
            db_system_id: Optional[str] = None,
            lifecycle_details: Optional[str] = None,
            objective: Optional[str] = None,
            state: Optional[str] = None) -> ExadataIormConfig
    func GetExadataIormConfig(ctx *Context, name string, id IDInput, state *ExadataIormConfigState, opts ...ResourceOption) (*ExadataIormConfig, error)
    public static ExadataIormConfig Get(string name, Input<string> id, ExadataIormConfigState? state, CustomResourceOptions? opts = null)
    public static ExadataIormConfig get(String name, Output<String> id, ExadataIormConfigState 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:
    DbPlans List<ExadataIormConfigDbPlan>
    (Updatable) Array of IORM Setting for all the database in this Exadata DB System
    DbSystemId string
    (Updatable) The DB system OCID.
    LifecycleDetails string
    Additional information about the current lifecycleState.
    Objective string

    (Updatable) Value for the IORM objective Default is "Auto"

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

    State string
    The current state of IORM configuration for the Exadata DB system.
    DbPlans []ExadataIormConfigDbPlanArgs
    (Updatable) Array of IORM Setting for all the database in this Exadata DB System
    DbSystemId string
    (Updatable) The DB system OCID.
    LifecycleDetails string
    Additional information about the current lifecycleState.
    Objective string

    (Updatable) Value for the IORM objective Default is "Auto"

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

    State string
    The current state of IORM configuration for the Exadata DB system.
    dbPlans List<ExadataIormConfigDbPlan>
    (Updatable) Array of IORM Setting for all the database in this Exadata DB System
    dbSystemId String
    (Updatable) The DB system OCID.
    lifecycleDetails String
    Additional information about the current lifecycleState.
    objective String

    (Updatable) Value for the IORM objective Default is "Auto"

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

    state String
    The current state of IORM configuration for the Exadata DB system.
    dbPlans ExadataIormConfigDbPlan[]
    (Updatable) Array of IORM Setting for all the database in this Exadata DB System
    dbSystemId string
    (Updatable) The DB system OCID.
    lifecycleDetails string
    Additional information about the current lifecycleState.
    objective string

    (Updatable) Value for the IORM objective Default is "Auto"

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

    state string
    The current state of IORM configuration for the Exadata DB system.
    db_plans Sequence[database.ExadataIormConfigDbPlanArgs]
    (Updatable) Array of IORM Setting for all the database in this Exadata DB System
    db_system_id str
    (Updatable) The DB system OCID.
    lifecycle_details str
    Additional information about the current lifecycleState.
    objective str

    (Updatable) Value for the IORM objective Default is "Auto"

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

    state str
    The current state of IORM configuration for the Exadata DB system.
    dbPlans List<Property Map>
    (Updatable) Array of IORM Setting for all the database in this Exadata DB System
    dbSystemId String
    (Updatable) The DB system OCID.
    lifecycleDetails String
    Additional information about the current lifecycleState.
    objective String

    (Updatable) Value for the IORM objective Default is "Auto"

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

    state String
    The current state of IORM configuration for the Exadata DB system.

    Supporting Types

    ExadataIormConfigDbPlan, ExadataIormConfigDbPlanArgs

    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

    Import is not supported for this resource.

    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.17.0 published on Friday, Nov 15, 2024 by Pulumi