oci.Database.CloudVmClusterIormConfig
Explore with Pulumi AI
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=[{
"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/v2/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.
Constructor 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:
- Cloud
Vm stringCluster Id - The Cluster OCID.
- Db
Plans List<CloudVm Cluster Iorm Config Db Plan> - (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 stringCluster Id - The Cluster OCID.
- Db
Plans []CloudVm Cluster Iorm Config Db Plan Args - (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 StringCluster Id - The Cluster OCID.
- db
Plans List<CloudVm Cluster Iorm Config Db Plan> - (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 stringCluster Id - The Cluster OCID.
- db
Plans CloudVm Cluster Iorm Config Db Plan[] - (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_ strcluster_ id - The Cluster OCID.
- db_
plans Sequence[database.Cloud Vm Cluster Iorm Config Db Plan Args] - (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"
- cloud
Vm StringCluster Id - The Cluster OCID.
- db
Plans 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.
- Lifecycle
Details 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.
- Lifecycle
Details 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.
- lifecycle
Details 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.
- lifecycle
Details 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.
- lifecycle
Details 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.
- Cloud
Vm stringCluster Id - The Cluster OCID.
- Db
Plans List<CloudVm Cluster Iorm Config Db Plan> - (Updatable) Array of IORM Setting for all the database in this Cloud Vm Cluster
- Lifecycle
Details 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 stringCluster Id - The Cluster OCID.
- Db
Plans []CloudVm Cluster Iorm Config Db Plan Args - (Updatable) Array of IORM Setting for all the database in this Cloud Vm Cluster
- Lifecycle
Details 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 StringCluster Id - The Cluster OCID.
- db
Plans List<CloudVm Cluster Iorm Config Db Plan> - (Updatable) Array of IORM Setting for all the database in this Cloud Vm Cluster
- lifecycle
Details 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 stringCluster Id - The Cluster OCID.
- db
Plans CloudVm Cluster Iorm Config Db Plan[] - (Updatable) Array of IORM Setting for all the database in this Cloud Vm Cluster
- lifecycle
Details 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_ strcluster_ id - The Cluster OCID.
- db_
plans Sequence[database.Cloud Vm Cluster Iorm Config Db Plan Args] - (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.
- cloud
Vm StringCluster Id - The Cluster OCID.
- db
Plans List<Property Map> - (Updatable) Array of IORM Setting for all the database in this Cloud Vm Cluster
- lifecycle
Details 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
- Db
Name string - (Updatable) The database name. For the default
DbPlan
, thedbName
isdefault
. - int
- (Updatable) The relative priority of this database.
- Flash
Cache stringLimit - The flash cache limit for this database. This value is internally configured based on the share value assigned to the database.
- Db
Name string - (Updatable) The database name. For the default
DbPlan
, thedbName
isdefault
. - int
- (Updatable) The relative priority of this database.
- Flash
Cache stringLimit - The flash cache limit for this database. This value is internally configured based on the share value assigned to the database.
- db
Name String - (Updatable) The database name. For the default
DbPlan
, thedbName
isdefault
. - Integer
- (Updatable) The relative priority of this database.
- flash
Cache StringLimit - The flash cache limit for this database. This value is internally configured based on the share value assigned to the database.
- db
Name string - (Updatable) The database name. For the default
DbPlan
, thedbName
isdefault
. - number
- (Updatable) The relative priority of this database.
- flash
Cache stringLimit - 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
, thedbName
isdefault
. - int
- (Updatable) The relative priority of this database.
- flash_
cache_ strlimit - The flash cache limit for this database. This value is internally configured based on the share value assigned to the database.
- db
Name String - (Updatable) The database name. For the default
DbPlan
, thedbName
isdefault
. - Number
- (Updatable) The relative priority of this database.
- flash
Cache StringLimit - 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.