oci.DatabaseManagement.CloudDbSystem
Explore with Pulumi AI
This resource provides the Cloud Db System resource in Oracle Cloud Infrastructure Database Management service.
Creates a cloud DB system and its related resources.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testCloudDbSystem = new oci.databasemanagement.CloudDbSystem("test_cloud_db_system", {
compartmentId: compartmentId,
dbSystemDiscoveryId: testDbSystemDiscovery.id,
databaseManagementConfig: {
isEnabled: cloudDbSystemDatabaseManagementConfigIsEnabled,
metadata: cloudDbSystemDatabaseManagementConfigMetadata,
},
definedTags: {
"Operations.CostCenter": "42",
},
displayName: cloudDbSystemDisplayName,
freeformTags: {
Department: "Finance",
},
stackMonitoringConfig: {
isEnabled: cloudDbSystemStackMonitoringConfigIsEnabled,
metadata: cloudDbSystemStackMonitoringConfigMetadata,
},
});
import pulumi
import pulumi_oci as oci
test_cloud_db_system = oci.databasemanagement.CloudDbSystem("test_cloud_db_system",
compartment_id=compartment_id,
db_system_discovery_id=test_db_system_discovery["id"],
database_management_config={
"is_enabled": cloud_db_system_database_management_config_is_enabled,
"metadata": cloud_db_system_database_management_config_metadata,
},
defined_tags={
"Operations.CostCenter": "42",
},
display_name=cloud_db_system_display_name,
freeform_tags={
"Department": "Finance",
},
stack_monitoring_config={
"is_enabled": cloud_db_system_stack_monitoring_config_is_enabled,
"metadata": cloud_db_system_stack_monitoring_config_metadata,
})
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v3/go/oci/databasemanagement"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := databasemanagement.NewCloudDbSystem(ctx, "test_cloud_db_system", &databasemanagement.CloudDbSystemArgs{
CompartmentId: pulumi.Any(compartmentId),
DbSystemDiscoveryId: pulumi.Any(testDbSystemDiscovery.Id),
DatabaseManagementConfig: &databasemanagement.CloudDbSystemDatabaseManagementConfigArgs{
IsEnabled: pulumi.Any(cloudDbSystemDatabaseManagementConfigIsEnabled),
Metadata: pulumi.Any(cloudDbSystemDatabaseManagementConfigMetadata),
},
DefinedTags: pulumi.StringMap{
"Operations.CostCenter": pulumi.String("42"),
},
DisplayName: pulumi.Any(cloudDbSystemDisplayName),
FreeformTags: pulumi.StringMap{
"Department": pulumi.String("Finance"),
},
StackMonitoringConfig: &databasemanagement.CloudDbSystemStackMonitoringConfigArgs{
IsEnabled: pulumi.Any(cloudDbSystemStackMonitoringConfigIsEnabled),
Metadata: pulumi.Any(cloudDbSystemStackMonitoringConfigMetadata),
},
})
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 testCloudDbSystem = new Oci.DatabaseManagement.CloudDbSystem("test_cloud_db_system", new()
{
CompartmentId = compartmentId,
DbSystemDiscoveryId = testDbSystemDiscovery.Id,
DatabaseManagementConfig = new Oci.DatabaseManagement.Inputs.CloudDbSystemDatabaseManagementConfigArgs
{
IsEnabled = cloudDbSystemDatabaseManagementConfigIsEnabled,
Metadata = cloudDbSystemDatabaseManagementConfigMetadata,
},
DefinedTags =
{
{ "Operations.CostCenter", "42" },
},
DisplayName = cloudDbSystemDisplayName,
FreeformTags =
{
{ "Department", "Finance" },
},
StackMonitoringConfig = new Oci.DatabaseManagement.Inputs.CloudDbSystemStackMonitoringConfigArgs
{
IsEnabled = cloudDbSystemStackMonitoringConfigIsEnabled,
Metadata = cloudDbSystemStackMonitoringConfigMetadata,
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.DatabaseManagement.CloudDbSystem;
import com.pulumi.oci.DatabaseManagement.CloudDbSystemArgs;
import com.pulumi.oci.DatabaseManagement.inputs.CloudDbSystemDatabaseManagementConfigArgs;
import com.pulumi.oci.DatabaseManagement.inputs.CloudDbSystemStackMonitoringConfigArgs;
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 testCloudDbSystem = new CloudDbSystem("testCloudDbSystem", CloudDbSystemArgs.builder()
.compartmentId(compartmentId)
.dbSystemDiscoveryId(testDbSystemDiscovery.id())
.databaseManagementConfig(CloudDbSystemDatabaseManagementConfigArgs.builder()
.isEnabled(cloudDbSystemDatabaseManagementConfigIsEnabled)
.metadata(cloudDbSystemDatabaseManagementConfigMetadata)
.build())
.definedTags(Map.of("Operations.CostCenter", "42"))
.displayName(cloudDbSystemDisplayName)
.freeformTags(Map.of("Department", "Finance"))
.stackMonitoringConfig(CloudDbSystemStackMonitoringConfigArgs.builder()
.isEnabled(cloudDbSystemStackMonitoringConfigIsEnabled)
.metadata(cloudDbSystemStackMonitoringConfigMetadata)
.build())
.build());
}
}
resources:
testCloudDbSystem:
type: oci:DatabaseManagement:CloudDbSystem
name: test_cloud_db_system
properties:
compartmentId: ${compartmentId}
dbSystemDiscoveryId: ${testDbSystemDiscovery.id}
databaseManagementConfig:
isEnabled: ${cloudDbSystemDatabaseManagementConfigIsEnabled}
metadata: ${cloudDbSystemDatabaseManagementConfigMetadata}
definedTags:
Operations.CostCenter: '42'
displayName: ${cloudDbSystemDisplayName}
freeformTags:
Department: Finance
stackMonitoringConfig:
isEnabled: ${cloudDbSystemStackMonitoringConfigIsEnabled}
metadata: ${cloudDbSystemStackMonitoringConfigMetadata}
Create CloudDbSystem Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CloudDbSystem(name: string, args: CloudDbSystemArgs, opts?: CustomResourceOptions);
@overload
def CloudDbSystem(resource_name: str,
args: CloudDbSystemArgs,
opts: Optional[ResourceOptions] = None)
@overload
def CloudDbSystem(resource_name: str,
opts: Optional[ResourceOptions] = None,
compartment_id: Optional[str] = None,
db_system_discovery_id: Optional[str] = None,
database_management_config: Optional[CloudDbSystemDatabaseManagementConfigArgs] = None,
defined_tags: Optional[Mapping[str, str]] = None,
display_name: Optional[str] = None,
freeform_tags: Optional[Mapping[str, str]] = None,
stack_monitoring_config: Optional[CloudDbSystemStackMonitoringConfigArgs] = None)
func NewCloudDbSystem(ctx *Context, name string, args CloudDbSystemArgs, opts ...ResourceOption) (*CloudDbSystem, error)
public CloudDbSystem(string name, CloudDbSystemArgs args, CustomResourceOptions? opts = null)
public CloudDbSystem(String name, CloudDbSystemArgs args)
public CloudDbSystem(String name, CloudDbSystemArgs args, CustomResourceOptions options)
type: oci:DatabaseManagement:CloudDbSystem
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 CloudDbSystemArgs
- 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 CloudDbSystemArgs
- 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 CloudDbSystemArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CloudDbSystemArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CloudDbSystemArgs
- 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 cloudDbSystemResource = new Oci.DatabaseManagement.CloudDbSystem("cloudDbSystemResource", new()
{
CompartmentId = "string",
DbSystemDiscoveryId = "string",
DatabaseManagementConfig = new Oci.DatabaseManagement.Inputs.CloudDbSystemDatabaseManagementConfigArgs
{
IsEnabled = false,
Metadata = "string",
},
DefinedTags =
{
{ "string", "string" },
},
DisplayName = "string",
FreeformTags =
{
{ "string", "string" },
},
StackMonitoringConfig = new Oci.DatabaseManagement.Inputs.CloudDbSystemStackMonitoringConfigArgs
{
IsEnabled = false,
Metadata = "string",
},
});
example, err := databasemanagement.NewCloudDbSystem(ctx, "cloudDbSystemResource", &databasemanagement.CloudDbSystemArgs{
CompartmentId: pulumi.String("string"),
DbSystemDiscoveryId: pulumi.String("string"),
DatabaseManagementConfig: &databasemanagement.CloudDbSystemDatabaseManagementConfigArgs{
IsEnabled: pulumi.Bool(false),
Metadata: pulumi.String("string"),
},
DefinedTags: pulumi.StringMap{
"string": pulumi.String("string"),
},
DisplayName: pulumi.String("string"),
FreeformTags: pulumi.StringMap{
"string": pulumi.String("string"),
},
StackMonitoringConfig: &databasemanagement.CloudDbSystemStackMonitoringConfigArgs{
IsEnabled: pulumi.Bool(false),
Metadata: pulumi.String("string"),
},
})
var cloudDbSystemResource = new CloudDbSystem("cloudDbSystemResource", CloudDbSystemArgs.builder()
.compartmentId("string")
.dbSystemDiscoveryId("string")
.databaseManagementConfig(CloudDbSystemDatabaseManagementConfigArgs.builder()
.isEnabled(false)
.metadata("string")
.build())
.definedTags(Map.of("string", "string"))
.displayName("string")
.freeformTags(Map.of("string", "string"))
.stackMonitoringConfig(CloudDbSystemStackMonitoringConfigArgs.builder()
.isEnabled(false)
.metadata("string")
.build())
.build());
cloud_db_system_resource = oci.databasemanagement.CloudDbSystem("cloudDbSystemResource",
compartment_id="string",
db_system_discovery_id="string",
database_management_config={
"is_enabled": False,
"metadata": "string",
},
defined_tags={
"string": "string",
},
display_name="string",
freeform_tags={
"string": "string",
},
stack_monitoring_config={
"is_enabled": False,
"metadata": "string",
})
const cloudDbSystemResource = new oci.databasemanagement.CloudDbSystem("cloudDbSystemResource", {
compartmentId: "string",
dbSystemDiscoveryId: "string",
databaseManagementConfig: {
isEnabled: false,
metadata: "string",
},
definedTags: {
string: "string",
},
displayName: "string",
freeformTags: {
string: "string",
},
stackMonitoringConfig: {
isEnabled: false,
metadata: "string",
},
});
type: oci:DatabaseManagement:CloudDbSystem
properties:
compartmentId: string
databaseManagementConfig:
isEnabled: false
metadata: string
dbSystemDiscoveryId: string
definedTags:
string: string
displayName: string
freeformTags:
string: string
stackMonitoringConfig:
isEnabled: false
metadata: string
CloudDbSystem 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 CloudDbSystem resource accepts the following input properties:
- Compartment
Id string - The OCID of the compartment in which the cloud DB system resides.
- Db
System stringDiscovery Id - The OCID of the DB system discovery.
- Database
Management CloudConfig Db System Database Management Config - The configuration details of Database Management for a cloud DB system.
- Dictionary<string, string>
- (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"}
- Display
Name string - (Updatable) The user-friendly name for the DB system. The name does not have to be unique.
- Dictionary<string, string>
- (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"}
- Stack
Monitoring CloudConfig Db System Stack Monitoring Config - The configuration details of Stack Monitoring for a cloud DB system.
- Compartment
Id string - The OCID of the compartment in which the cloud DB system resides.
- Db
System stringDiscovery Id - The OCID of the DB system discovery.
- Database
Management CloudConfig Db System Database Management Config Args - The configuration details of Database Management for a cloud DB system.
- map[string]string
- (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"}
- Display
Name string - (Updatable) The user-friendly name for the DB system. The name does not have to be unique.
- map[string]string
- (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"}
- Stack
Monitoring CloudConfig Db System Stack Monitoring Config Args - The configuration details of Stack Monitoring for a cloud DB system.
- compartment
Id String - The OCID of the compartment in which the cloud DB system resides.
- db
System StringDiscovery Id - The OCID of the DB system discovery.
- database
Management CloudConfig Db System Config - The configuration details of Database Management for a cloud DB system.
- Map<String,String>
- (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"}
- display
Name String - (Updatable) The user-friendly name for the DB system. The name does not have to be unique.
- Map<String,String>
- (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"}
- stack
Monitoring CloudConfig Db System Stack Monitoring Config - The configuration details of Stack Monitoring for a cloud DB system.
- compartment
Id string - The OCID of the compartment in which the cloud DB system resides.
- db
System stringDiscovery Id - The OCID of the DB system discovery.
- database
Management CloudConfig Db System Database Management Config - The configuration details of Database Management for a cloud DB system.
- {[key: string]: string}
- (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"}
- display
Name string - (Updatable) The user-friendly name for the DB system. The name does not have to be unique.
- {[key: string]: string}
- (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"}
- stack
Monitoring CloudConfig Db System Stack Monitoring Config - The configuration details of Stack Monitoring for a cloud DB system.
- compartment_
id str - The OCID of the compartment in which the cloud DB system resides.
- db_
system_ strdiscovery_ id - The OCID of the DB system discovery.
- database_
management_ Cloudconfig Db System Database Management Config Args - The configuration details of Database Management for a cloud DB system.
- Mapping[str, str]
- (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"}
- display_
name str - (Updatable) The user-friendly name for the DB system. The name does not have to be unique.
- Mapping[str, str]
- (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"}
- stack_
monitoring_ Cloudconfig Db System Stack Monitoring Config Args - The configuration details of Stack Monitoring for a cloud DB system.
- compartment
Id String - The OCID of the compartment in which the cloud DB system resides.
- db
System StringDiscovery Id - The OCID of the DB system discovery.
- database
Management Property MapConfig - The configuration details of Database Management for a cloud DB system.
- Map<String>
- (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"}
- display
Name String - (Updatable) The user-friendly name for the DB system. The name does not have to be unique.
- Map<String>
- (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"}
- stack
Monitoring Property MapConfig - The configuration details of Stack Monitoring for a cloud DB system.
Outputs
All input properties are implicitly available as output properties. Additionally, the CloudDbSystem resource produces the following output properties:
- Dbaas
Parent stringInfrastructure Id - The OCID of the parent cloud DB Infrastructure. For VM Dbsystems , it will be the DBSystem Id. For ExaCS and ExaCC, it will be the cloudVmClusterId and vmClusterId respectively.
- Deployment
Type string - The deployment type of cloud dbsystem.
- Discovery
Agent stringId - The OCID of the management agent used during the discovery of the DB system.
- Home
Directory string - The Oracle Grid home directory in case of cluster-based DB system and Oracle home directory in case of single instance-based DB system.
- Id string
- The provider-assigned unique ID for this managed resource.
- Is
Cluster bool - Indicates whether the DB system is a cluster DB system or not.
- Lifecycle
Details string - Additional information about the current lifecycle state.
- State string
- The current lifecycle state of the cloud DB system resource.
- Dictionary<string, string>
- 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 string - The date and time the cloud DB system was created.
- Time
Updated string - The date and time the cloud DB system was last updated.
- Dbaas
Parent stringInfrastructure Id - The OCID of the parent cloud DB Infrastructure. For VM Dbsystems , it will be the DBSystem Id. For ExaCS and ExaCC, it will be the cloudVmClusterId and vmClusterId respectively.
- Deployment
Type string - The deployment type of cloud dbsystem.
- Discovery
Agent stringId - The OCID of the management agent used during the discovery of the DB system.
- Home
Directory string - The Oracle Grid home directory in case of cluster-based DB system and Oracle home directory in case of single instance-based DB system.
- Id string
- The provider-assigned unique ID for this managed resource.
- Is
Cluster bool - Indicates whether the DB system is a cluster DB system or not.
- Lifecycle
Details string - Additional information about the current lifecycle state.
- State string
- The current lifecycle state of the cloud DB system resource.
- map[string]string
- 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 string - The date and time the cloud DB system was created.
- Time
Updated string - The date and time the cloud DB system was last updated.
- dbaas
Parent StringInfrastructure Id - The OCID of the parent cloud DB Infrastructure. For VM Dbsystems , it will be the DBSystem Id. For ExaCS and ExaCC, it will be the cloudVmClusterId and vmClusterId respectively.
- deployment
Type String - The deployment type of cloud dbsystem.
- discovery
Agent StringId - The OCID of the management agent used during the discovery of the DB system.
- home
Directory String - The Oracle Grid home directory in case of cluster-based DB system and Oracle home directory in case of single instance-based DB system.
- id String
- The provider-assigned unique ID for this managed resource.
- is
Cluster Boolean - Indicates whether the DB system is a cluster DB system or not.
- lifecycle
Details String - Additional information about the current lifecycle state.
- state String
- The current lifecycle state of the cloud DB system resource.
- Map<String,String>
- 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 String - The date and time the cloud DB system was created.
- time
Updated String - The date and time the cloud DB system was last updated.
- dbaas
Parent stringInfrastructure Id - The OCID of the parent cloud DB Infrastructure. For VM Dbsystems , it will be the DBSystem Id. For ExaCS and ExaCC, it will be the cloudVmClusterId and vmClusterId respectively.
- deployment
Type string - The deployment type of cloud dbsystem.
- discovery
Agent stringId - The OCID of the management agent used during the discovery of the DB system.
- home
Directory string - The Oracle Grid home directory in case of cluster-based DB system and Oracle home directory in case of single instance-based DB system.
- id string
- The provider-assigned unique ID for this managed resource.
- is
Cluster boolean - Indicates whether the DB system is a cluster DB system or not.
- lifecycle
Details string - Additional information about the current lifecycle state.
- state string
- The current lifecycle state of the cloud DB system resource.
- {[key: string]: string}
- 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 string - The date and time the cloud DB system was created.
- time
Updated string - The date and time the cloud DB system was last updated.
- dbaas_
parent_ strinfrastructure_ id - The OCID of the parent cloud DB Infrastructure. For VM Dbsystems , it will be the DBSystem Id. For ExaCS and ExaCC, it will be the cloudVmClusterId and vmClusterId respectively.
- deployment_
type str - The deployment type of cloud dbsystem.
- discovery_
agent_ strid - The OCID of the management agent used during the discovery of the DB system.
- home_
directory str - The Oracle Grid home directory in case of cluster-based DB system and Oracle home directory in case of single instance-based DB system.
- id str
- The provider-assigned unique ID for this managed resource.
- is_
cluster bool - Indicates whether the DB system is a cluster DB system or not.
- lifecycle_
details str - Additional information about the current lifecycle state.
- state str
- The current lifecycle state of the cloud DB system resource.
- Mapping[str, str]
- 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 cloud DB system was created.
- time_
updated str - The date and time the cloud DB system was last updated.
- dbaas
Parent StringInfrastructure Id - The OCID of the parent cloud DB Infrastructure. For VM Dbsystems , it will be the DBSystem Id. For ExaCS and ExaCC, it will be the cloudVmClusterId and vmClusterId respectively.
- deployment
Type String - The deployment type of cloud dbsystem.
- discovery
Agent StringId - The OCID of the management agent used during the discovery of the DB system.
- home
Directory String - The Oracle Grid home directory in case of cluster-based DB system and Oracle home directory in case of single instance-based DB system.
- id String
- The provider-assigned unique ID for this managed resource.
- is
Cluster Boolean - Indicates whether the DB system is a cluster DB system or not.
- lifecycle
Details String - Additional information about the current lifecycle state.
- state String
- The current lifecycle state of the cloud DB system resource.
- Map<String>
- 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 String - The date and time the cloud DB system was created.
- time
Updated String - The date and time the cloud DB system was last updated.
Look up Existing CloudDbSystem Resource
Get an existing CloudDbSystem 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?: CloudDbSystemState, opts?: CustomResourceOptions): CloudDbSystem
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
compartment_id: Optional[str] = None,
database_management_config: Optional[CloudDbSystemDatabaseManagementConfigArgs] = None,
db_system_discovery_id: Optional[str] = None,
dbaas_parent_infrastructure_id: Optional[str] = None,
defined_tags: Optional[Mapping[str, str]] = None,
deployment_type: Optional[str] = None,
discovery_agent_id: Optional[str] = None,
display_name: Optional[str] = None,
freeform_tags: Optional[Mapping[str, str]] = None,
home_directory: Optional[str] = None,
is_cluster: Optional[bool] = None,
lifecycle_details: Optional[str] = None,
stack_monitoring_config: Optional[CloudDbSystemStackMonitoringConfigArgs] = None,
state: Optional[str] = None,
system_tags: Optional[Mapping[str, str]] = None,
time_created: Optional[str] = None,
time_updated: Optional[str] = None) -> CloudDbSystem
func GetCloudDbSystem(ctx *Context, name string, id IDInput, state *CloudDbSystemState, opts ...ResourceOption) (*CloudDbSystem, error)
public static CloudDbSystem Get(string name, Input<string> id, CloudDbSystemState? state, CustomResourceOptions? opts = null)
public static CloudDbSystem get(String name, Output<String> id, CloudDbSystemState state, CustomResourceOptions options)
resources: _: type: oci:DatabaseManagement:CloudDbSystem get: id: ${id}
- 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.
- Compartment
Id string - The OCID of the compartment in which the cloud DB system resides.
- Database
Management CloudConfig Db System Database Management Config - The configuration details of Database Management for a cloud DB system.
- Db
System stringDiscovery Id - The OCID of the DB system discovery.
- Dbaas
Parent stringInfrastructure Id - The OCID of the parent cloud DB Infrastructure. For VM Dbsystems , it will be the DBSystem Id. For ExaCS and ExaCC, it will be the cloudVmClusterId and vmClusterId respectively.
- Dictionary<string, string>
- (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 string - The deployment type of cloud dbsystem.
- Discovery
Agent stringId - The OCID of the management agent used during the discovery of the DB system.
- Display
Name string - (Updatable) The user-friendly name for the DB system. The name does not have to be unique.
- Dictionary<string, string>
- (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"}
- Home
Directory string - The Oracle Grid home directory in case of cluster-based DB system and Oracle home directory in case of single instance-based DB system.
- Is
Cluster bool - Indicates whether the DB system is a cluster DB system or not.
- Lifecycle
Details string - Additional information about the current lifecycle state.
- Stack
Monitoring CloudConfig Db System Stack Monitoring Config - The configuration details of Stack Monitoring for a cloud DB system.
- State string
- The current lifecycle state of the cloud DB system resource.
- Dictionary<string, string>
- 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 string - The date and time the cloud DB system was created.
- Time
Updated string - The date and time the cloud DB system was last updated.
- Compartment
Id string - The OCID of the compartment in which the cloud DB system resides.
- Database
Management CloudConfig Db System Database Management Config Args - The configuration details of Database Management for a cloud DB system.
- Db
System stringDiscovery Id - The OCID of the DB system discovery.
- Dbaas
Parent stringInfrastructure Id - The OCID of the parent cloud DB Infrastructure. For VM Dbsystems , it will be the DBSystem Id. For ExaCS and ExaCC, it will be the cloudVmClusterId and vmClusterId respectively.
- map[string]string
- (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 string - The deployment type of cloud dbsystem.
- Discovery
Agent stringId - The OCID of the management agent used during the discovery of the DB system.
- Display
Name string - (Updatable) The user-friendly name for the DB system. The name does not have to be unique.
- map[string]string
- (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"}
- Home
Directory string - The Oracle Grid home directory in case of cluster-based DB system and Oracle home directory in case of single instance-based DB system.
- Is
Cluster bool - Indicates whether the DB system is a cluster DB system or not.
- Lifecycle
Details string - Additional information about the current lifecycle state.
- Stack
Monitoring CloudConfig Db System Stack Monitoring Config Args - The configuration details of Stack Monitoring for a cloud DB system.
- State string
- The current lifecycle state of the cloud DB system resource.
- map[string]string
- 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 string - The date and time the cloud DB system was created.
- Time
Updated string - The date and time the cloud DB system was last updated.
- compartment
Id String - The OCID of the compartment in which the cloud DB system resides.
- database
Management CloudConfig Db System Config - The configuration details of Database Management for a cloud DB system.
- db
System StringDiscovery Id - The OCID of the DB system discovery.
- dbaas
Parent StringInfrastructure Id - The OCID of the parent cloud DB Infrastructure. For VM Dbsystems , it will be the DBSystem Id. For ExaCS and ExaCC, it will be the cloudVmClusterId and vmClusterId respectively.
- Map<String,String>
- (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 String - The deployment type of cloud dbsystem.
- discovery
Agent StringId - The OCID of the management agent used during the discovery of the DB system.
- display
Name String - (Updatable) The user-friendly name for the DB system. The name does not have to be unique.
- Map<String,String>
- (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"}
- home
Directory String - The Oracle Grid home directory in case of cluster-based DB system and Oracle home directory in case of single instance-based DB system.
- is
Cluster Boolean - Indicates whether the DB system is a cluster DB system or not.
- lifecycle
Details String - Additional information about the current lifecycle state.
- stack
Monitoring CloudConfig Db System Stack Monitoring Config - The configuration details of Stack Monitoring for a cloud DB system.
- state String
- The current lifecycle state of the cloud DB system resource.
- Map<String,String>
- 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 String - The date and time the cloud DB system was created.
- time
Updated String - The date and time the cloud DB system was last updated.
- compartment
Id string - The OCID of the compartment in which the cloud DB system resides.
- database
Management CloudConfig Db System Database Management Config - The configuration details of Database Management for a cloud DB system.
- db
System stringDiscovery Id - The OCID of the DB system discovery.
- dbaas
Parent stringInfrastructure Id - The OCID of the parent cloud DB Infrastructure. For VM Dbsystems , it will be the DBSystem Id. For ExaCS and ExaCC, it will be the cloudVmClusterId and vmClusterId respectively.
- {[key: string]: string}
- (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 string - The deployment type of cloud dbsystem.
- discovery
Agent stringId - The OCID of the management agent used during the discovery of the DB system.
- display
Name string - (Updatable) The user-friendly name for the DB system. The name does not have to be unique.
- {[key: string]: string}
- (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"}
- home
Directory string - The Oracle Grid home directory in case of cluster-based DB system and Oracle home directory in case of single instance-based DB system.
- is
Cluster boolean - Indicates whether the DB system is a cluster DB system or not.
- lifecycle
Details string - Additional information about the current lifecycle state.
- stack
Monitoring CloudConfig Db System Stack Monitoring Config - The configuration details of Stack Monitoring for a cloud DB system.
- state string
- The current lifecycle state of the cloud DB system resource.
- {[key: string]: string}
- 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 string - The date and time the cloud DB system was created.
- time
Updated string - The date and time the cloud DB system was last updated.
- compartment_
id str - The OCID of the compartment in which the cloud DB system resides.
- database_
management_ Cloudconfig Db System Database Management Config Args - The configuration details of Database Management for a cloud DB system.
- db_
system_ strdiscovery_ id - The OCID of the DB system discovery.
- dbaas_
parent_ strinfrastructure_ id - The OCID of the parent cloud DB Infrastructure. For VM Dbsystems , it will be the DBSystem Id. For ExaCS and ExaCC, it will be the cloudVmClusterId and vmClusterId respectively.
- Mapping[str, str]
- (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 deployment type of cloud dbsystem.
- discovery_
agent_ strid - The OCID of the management agent used during the discovery of the DB system.
- display_
name str - (Updatable) The user-friendly name for the DB system. The name does not have to be unique.
- Mapping[str, str]
- (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"}
- home_
directory str - The Oracle Grid home directory in case of cluster-based DB system and Oracle home directory in case of single instance-based DB system.
- is_
cluster bool - Indicates whether the DB system is a cluster DB system or not.
- lifecycle_
details str - Additional information about the current lifecycle state.
- stack_
monitoring_ Cloudconfig Db System Stack Monitoring Config Args - The configuration details of Stack Monitoring for a cloud DB system.
- state str
- The current lifecycle state of the cloud DB system resource.
- Mapping[str, str]
- 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 cloud DB system was created.
- time_
updated str - The date and time the cloud DB system was last updated.
- compartment
Id String - The OCID of the compartment in which the cloud DB system resides.
- database
Management Property MapConfig - The configuration details of Database Management for a cloud DB system.
- db
System StringDiscovery Id - The OCID of the DB system discovery.
- dbaas
Parent StringInfrastructure Id - The OCID of the parent cloud DB Infrastructure. For VM Dbsystems , it will be the DBSystem Id. For ExaCS and ExaCC, it will be the cloudVmClusterId and vmClusterId respectively.
- Map<String>
- (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 String - The deployment type of cloud dbsystem.
- discovery
Agent StringId - The OCID of the management agent used during the discovery of the DB system.
- display
Name String - (Updatable) The user-friendly name for the DB system. The name does not have to be unique.
- Map<String>
- (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"}
- home
Directory String - The Oracle Grid home directory in case of cluster-based DB system and Oracle home directory in case of single instance-based DB system.
- is
Cluster Boolean - Indicates whether the DB system is a cluster DB system or not.
- lifecycle
Details String - Additional information about the current lifecycle state.
- stack
Monitoring Property MapConfig - The configuration details of Stack Monitoring for a cloud DB system.
- state String
- The current lifecycle state of the cloud DB system resource.
- Map<String>
- 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 String - The date and time the cloud DB system was created.
- time
Updated String - The date and time the cloud DB system was last updated.
Supporting Types
CloudDbSystemDatabaseManagementConfig, CloudDbSystemDatabaseManagementConfigArgs
- is_
enabled bool - The status of the associated service.
- metadata str
- The associated service-specific inputs in JSON string format, which Database Management can identify.
CloudDbSystemStackMonitoringConfig, CloudDbSystemStackMonitoringConfigArgs
- Is
Enabled bool - The status of the associated service.
- Metadata string
The associated service-specific inputs in JSON string format, which Database Management can identify.
** 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
- Is
Enabled bool - The status of the associated service.
- Metadata string
The associated service-specific inputs in JSON string format, which Database Management can identify.
** 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
- is
Enabled Boolean - The status of the associated service.
- metadata String
The associated service-specific inputs in JSON string format, which Database Management can identify.
** 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
- is
Enabled boolean - The status of the associated service.
- metadata string
The associated service-specific inputs in JSON string format, which Database Management can identify.
** 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
- is_
enabled bool - The status of the associated service.
- metadata str
The associated service-specific inputs in JSON string format, which Database Management can identify.
** 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
- is
Enabled Boolean - The status of the associated service.
- metadata String
The associated service-specific inputs in JSON string format, which Database Management can identify.
** 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
Import
CloudDbSystems can be imported using the id
, e.g.
$ pulumi import oci:DatabaseManagement/cloudDbSystem:CloudDbSystem test_cloud_db_system "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.