oci.DatabaseManagement.CloudDbSystemCloudStackMonitoringsManagement
Explore with Pulumi AI
This resource provides the Cloud Db System Cloud Stack Monitorings Management resource in Oracle Cloud Infrastructure Database Management service.
Enables Stack Monitoring for all the components of the specified cloud DB system (except databases).
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testCloudDbSystemCloudStackMonitoringsManagement = new oci.databasemanagement.CloudDbSystemCloudStackMonitoringsManagement("test_cloud_db_system_cloud_stack_monitorings_management", {
cloudDbSystemId: testCloudDbSystem.id,
enableCloudStackMonitoring: enableCloudStackMonitoring,
isEnabled: cloudDbSystemCloudStackMonitoringsManagementIsEnabled,
metadata: cloudDbSystemCloudStackMonitoringsManagementMetadata,
});
import pulumi
import pulumi_oci as oci
test_cloud_db_system_cloud_stack_monitorings_management = oci.databasemanagement.CloudDbSystemCloudStackMonitoringsManagement("test_cloud_db_system_cloud_stack_monitorings_management",
cloud_db_system_id=test_cloud_db_system["id"],
enable_cloud_stack_monitoring=enable_cloud_stack_monitoring,
is_enabled=cloud_db_system_cloud_stack_monitorings_management_is_enabled,
metadata=cloud_db_system_cloud_stack_monitorings_management_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.NewCloudDbSystemCloudStackMonitoringsManagement(ctx, "test_cloud_db_system_cloud_stack_monitorings_management", &databasemanagement.CloudDbSystemCloudStackMonitoringsManagementArgs{
CloudDbSystemId: pulumi.Any(testCloudDbSystem.Id),
EnableCloudStackMonitoring: pulumi.Any(enableCloudStackMonitoring),
IsEnabled: pulumi.Any(cloudDbSystemCloudStackMonitoringsManagementIsEnabled),
Metadata: pulumi.Any(cloudDbSystemCloudStackMonitoringsManagementMetadata),
})
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 testCloudDbSystemCloudStackMonitoringsManagement = new Oci.DatabaseManagement.CloudDbSystemCloudStackMonitoringsManagement("test_cloud_db_system_cloud_stack_monitorings_management", new()
{
CloudDbSystemId = testCloudDbSystem.Id,
EnableCloudStackMonitoring = enableCloudStackMonitoring,
IsEnabled = cloudDbSystemCloudStackMonitoringsManagementIsEnabled,
Metadata = cloudDbSystemCloudStackMonitoringsManagementMetadata,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.DatabaseManagement.CloudDbSystemCloudStackMonitoringsManagement;
import com.pulumi.oci.DatabaseManagement.CloudDbSystemCloudStackMonitoringsManagementArgs;
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 testCloudDbSystemCloudStackMonitoringsManagement = new CloudDbSystemCloudStackMonitoringsManagement("testCloudDbSystemCloudStackMonitoringsManagement", CloudDbSystemCloudStackMonitoringsManagementArgs.builder()
.cloudDbSystemId(testCloudDbSystem.id())
.enableCloudStackMonitoring(enableCloudStackMonitoring)
.isEnabled(cloudDbSystemCloudStackMonitoringsManagementIsEnabled)
.metadata(cloudDbSystemCloudStackMonitoringsManagementMetadata)
.build());
}
}
resources:
testCloudDbSystemCloudStackMonitoringsManagement:
type: oci:DatabaseManagement:CloudDbSystemCloudStackMonitoringsManagement
name: test_cloud_db_system_cloud_stack_monitorings_management
properties:
cloudDbSystemId: ${testCloudDbSystem.id}
enableCloudStackMonitoring: ${enableCloudStackMonitoring}
isEnabled: ${cloudDbSystemCloudStackMonitoringsManagementIsEnabled}
metadata: ${cloudDbSystemCloudStackMonitoringsManagementMetadata}
Create CloudDbSystemCloudStackMonitoringsManagement Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CloudDbSystemCloudStackMonitoringsManagement(name: string, args: CloudDbSystemCloudStackMonitoringsManagementArgs, opts?: CustomResourceOptions);
@overload
def CloudDbSystemCloudStackMonitoringsManagement(resource_name: str,
args: CloudDbSystemCloudStackMonitoringsManagementArgs,
opts: Optional[ResourceOptions] = None)
@overload
def CloudDbSystemCloudStackMonitoringsManagement(resource_name: str,
opts: Optional[ResourceOptions] = None,
cloud_db_system_id: Optional[str] = None,
enable_cloud_stack_monitoring: Optional[bool] = None,
is_enabled: Optional[bool] = None,
metadata: Optional[str] = None)
func NewCloudDbSystemCloudStackMonitoringsManagement(ctx *Context, name string, args CloudDbSystemCloudStackMonitoringsManagementArgs, opts ...ResourceOption) (*CloudDbSystemCloudStackMonitoringsManagement, error)
public CloudDbSystemCloudStackMonitoringsManagement(string name, CloudDbSystemCloudStackMonitoringsManagementArgs args, CustomResourceOptions? opts = null)
public CloudDbSystemCloudStackMonitoringsManagement(String name, CloudDbSystemCloudStackMonitoringsManagementArgs args)
public CloudDbSystemCloudStackMonitoringsManagement(String name, CloudDbSystemCloudStackMonitoringsManagementArgs args, CustomResourceOptions options)
type: oci:DatabaseManagement:CloudDbSystemCloudStackMonitoringsManagement
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 CloudDbSystemCloudStackMonitoringsManagementArgs
- 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 CloudDbSystemCloudStackMonitoringsManagementArgs
- 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 CloudDbSystemCloudStackMonitoringsManagementArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CloudDbSystemCloudStackMonitoringsManagementArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CloudDbSystemCloudStackMonitoringsManagementArgs
- 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 cloudDbSystemCloudStackMonitoringsManagementResource = new Oci.DatabaseManagement.CloudDbSystemCloudStackMonitoringsManagement("cloudDbSystemCloudStackMonitoringsManagementResource", new()
{
CloudDbSystemId = "string",
EnableCloudStackMonitoring = false,
IsEnabled = false,
Metadata = "string",
});
example, err := databasemanagement.NewCloudDbSystemCloudStackMonitoringsManagement(ctx, "cloudDbSystemCloudStackMonitoringsManagementResource", &databasemanagement.CloudDbSystemCloudStackMonitoringsManagementArgs{
CloudDbSystemId: pulumi.String("string"),
EnableCloudStackMonitoring: pulumi.Bool(false),
IsEnabled: pulumi.Bool(false),
Metadata: pulumi.String("string"),
})
var cloudDbSystemCloudStackMonitoringsManagementResource = new CloudDbSystemCloudStackMonitoringsManagement("cloudDbSystemCloudStackMonitoringsManagementResource", CloudDbSystemCloudStackMonitoringsManagementArgs.builder()
.cloudDbSystemId("string")
.enableCloudStackMonitoring(false)
.isEnabled(false)
.metadata("string")
.build());
cloud_db_system_cloud_stack_monitorings_management_resource = oci.databasemanagement.CloudDbSystemCloudStackMonitoringsManagement("cloudDbSystemCloudStackMonitoringsManagementResource",
cloud_db_system_id="string",
enable_cloud_stack_monitoring=False,
is_enabled=False,
metadata="string")
const cloudDbSystemCloudStackMonitoringsManagementResource = new oci.databasemanagement.CloudDbSystemCloudStackMonitoringsManagement("cloudDbSystemCloudStackMonitoringsManagementResource", {
cloudDbSystemId: "string",
enableCloudStackMonitoring: false,
isEnabled: false,
metadata: "string",
});
type: oci:DatabaseManagement:CloudDbSystemCloudStackMonitoringsManagement
properties:
cloudDbSystemId: string
enableCloudStackMonitoring: false
isEnabled: false
metadata: string
CloudDbSystemCloudStackMonitoringsManagement 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 CloudDbSystemCloudStackMonitoringsManagement resource accepts the following input properties:
- Cloud
Db stringSystem Id - The OCID of the cloud DB system.
- Enable
Cloud boolStack Monitoring (Updatable) A required field when set to
true
calls enable action and when set tofalse
calls disable action.** 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.
- Cloud
Db stringSystem Id - The OCID of the cloud DB system.
- Enable
Cloud boolStack Monitoring (Updatable) A required field when set to
true
calls enable action and when set tofalse
calls disable action.** 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.
- cloud
Db StringSystem Id - The OCID of the cloud DB system.
- enable
Cloud BooleanStack Monitoring (Updatable) A required field when set to
true
calls enable action and when set tofalse
calls disable action.** 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.
- cloud
Db stringSystem Id - The OCID of the cloud DB system.
- enable
Cloud booleanStack Monitoring (Updatable) A required field when set to
true
calls enable action and when set tofalse
calls disable action.** 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.
- cloud_
db_ strsystem_ id - The OCID of the cloud DB system.
- enable_
cloud_ boolstack_ monitoring (Updatable) A required field when set to
true
calls enable action and when set tofalse
calls disable action.** 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.
- cloud
Db StringSystem Id - The OCID of the cloud DB system.
- enable
Cloud BooleanStack Monitoring (Updatable) A required field when set to
true
calls enable action and when set tofalse
calls disable action.** 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.
Outputs
All input properties are implicitly available as output properties. Additionally, the CloudDbSystemCloudStackMonitoringsManagement resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing CloudDbSystemCloudStackMonitoringsManagement Resource
Get an existing CloudDbSystemCloudStackMonitoringsManagement 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?: CloudDbSystemCloudStackMonitoringsManagementState, opts?: CustomResourceOptions): CloudDbSystemCloudStackMonitoringsManagement
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
cloud_db_system_id: Optional[str] = None,
enable_cloud_stack_monitoring: Optional[bool] = None,
is_enabled: Optional[bool] = None,
metadata: Optional[str] = None) -> CloudDbSystemCloudStackMonitoringsManagement
func GetCloudDbSystemCloudStackMonitoringsManagement(ctx *Context, name string, id IDInput, state *CloudDbSystemCloudStackMonitoringsManagementState, opts ...ResourceOption) (*CloudDbSystemCloudStackMonitoringsManagement, error)
public static CloudDbSystemCloudStackMonitoringsManagement Get(string name, Input<string> id, CloudDbSystemCloudStackMonitoringsManagementState? state, CustomResourceOptions? opts = null)
public static CloudDbSystemCloudStackMonitoringsManagement get(String name, Output<String> id, CloudDbSystemCloudStackMonitoringsManagementState state, CustomResourceOptions options)
resources: _: type: oci:DatabaseManagement:CloudDbSystemCloudStackMonitoringsManagement 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.
- Cloud
Db stringSystem Id - The OCID of the cloud DB system.
- Enable
Cloud boolStack Monitoring (Updatable) A required field when set to
true
calls enable action and when set tofalse
calls disable action.** 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.
- Cloud
Db stringSystem Id - The OCID of the cloud DB system.
- Enable
Cloud boolStack Monitoring (Updatable) A required field when set to
true
calls enable action and when set tofalse
calls disable action.** 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.
- cloud
Db StringSystem Id - The OCID of the cloud DB system.
- enable
Cloud BooleanStack Monitoring (Updatable) A required field when set to
true
calls enable action and when set tofalse
calls disable action.** 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.
- cloud
Db stringSystem Id - The OCID of the cloud DB system.
- enable
Cloud booleanStack Monitoring (Updatable) A required field when set to
true
calls enable action and when set tofalse
calls disable action.** 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.
- cloud_
db_ strsystem_ id - The OCID of the cloud DB system.
- enable_
cloud_ boolstack_ monitoring (Updatable) A required field when set to
true
calls enable action and when set tofalse
calls disable action.** 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.
- cloud
Db StringSystem Id - The OCID of the cloud DB system.
- enable
Cloud BooleanStack Monitoring (Updatable) A required field when set to
true
calls enable action and when set tofalse
calls disable action.** 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.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.