oci.DatabaseManagement.ExternalDbSystemStackMonitoringsManagement
Explore with Pulumi AI
This resource provides the External Db System Stack Monitorings Management resource in Oracle Cloud Infrastructure Database Management service.
Enables Stack Monitoring for all the components of the specified external DB system (except databases).
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testExternalDbSystemStackMonitoringsManagement = new oci.databasemanagement.ExternalDbSystemStackMonitoringsManagement("test_external_db_system_stack_monitorings_management", {
externalDbSystemId: testExternalDbSystem.id,
enableStackMonitoring: enableStackMonitoring,
isEnabled: externalDbSystemStackMonitoringsManagementIsEnabled,
metadata: externalDbSystemStackMonitoringsManagementMetadata,
});
import pulumi
import pulumi_oci as oci
test_external_db_system_stack_monitorings_management = oci.database_management.ExternalDbSystemStackMonitoringsManagement("test_external_db_system_stack_monitorings_management",
external_db_system_id=test_external_db_system["id"],
enable_stack_monitoring=enable_stack_monitoring,
is_enabled=external_db_system_stack_monitorings_management_is_enabled,
metadata=external_db_system_stack_monitorings_management_metadata)
package main
import (
"github.com/pulumi/pulumi-oci/sdk/go/oci/DatabaseManagement"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := DatabaseManagement.NewExternalDbSystemStackMonitoringsManagement(ctx, "test_external_db_system_stack_monitorings_management", &DatabaseManagement.ExternalDbSystemStackMonitoringsManagementArgs{
ExternalDbSystemId: pulumi.Any(testExternalDbSystem.Id),
EnableStackMonitoring: pulumi.Any(enableStackMonitoring),
IsEnabled: pulumi.Any(externalDbSystemStackMonitoringsManagementIsEnabled),
Metadata: pulumi.Any(externalDbSystemStackMonitoringsManagementMetadata),
})
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 testExternalDbSystemStackMonitoringsManagement = new Oci.DatabaseManagement.ExternalDbSystemStackMonitoringsManagement("test_external_db_system_stack_monitorings_management", new()
{
ExternalDbSystemId = testExternalDbSystem.Id,
EnableStackMonitoring = enableStackMonitoring,
IsEnabled = externalDbSystemStackMonitoringsManagementIsEnabled,
Metadata = externalDbSystemStackMonitoringsManagementMetadata,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.DatabaseManagement.ExternalDbSystemStackMonitoringsManagement;
import com.pulumi.oci.DatabaseManagement.ExternalDbSystemStackMonitoringsManagementArgs;
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 testExternalDbSystemStackMonitoringsManagement = new ExternalDbSystemStackMonitoringsManagement("testExternalDbSystemStackMonitoringsManagement", ExternalDbSystemStackMonitoringsManagementArgs.builder()
.externalDbSystemId(testExternalDbSystem.id())
.enableStackMonitoring(enableStackMonitoring)
.isEnabled(externalDbSystemStackMonitoringsManagementIsEnabled)
.metadata(externalDbSystemStackMonitoringsManagementMetadata)
.build());
}
}
resources:
testExternalDbSystemStackMonitoringsManagement:
type: oci:DatabaseManagement:ExternalDbSystemStackMonitoringsManagement
name: test_external_db_system_stack_monitorings_management
properties:
externalDbSystemId: ${testExternalDbSystem.id}
enableStackMonitoring: ${enableStackMonitoring}
isEnabled: ${externalDbSystemStackMonitoringsManagementIsEnabled}
metadata: ${externalDbSystemStackMonitoringsManagementMetadata}
Create ExternalDbSystemStackMonitoringsManagement Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ExternalDbSystemStackMonitoringsManagement(name: string, args: ExternalDbSystemStackMonitoringsManagementArgs, opts?: CustomResourceOptions);
@overload
def ExternalDbSystemStackMonitoringsManagement(resource_name: str,
args: ExternalDbSystemStackMonitoringsManagementArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ExternalDbSystemStackMonitoringsManagement(resource_name: str,
opts: Optional[ResourceOptions] = None,
enable_stack_monitoring: Optional[bool] = None,
external_db_system_id: Optional[str] = None,
is_enabled: Optional[bool] = None,
metadata: Optional[str] = None)
func NewExternalDbSystemStackMonitoringsManagement(ctx *Context, name string, args ExternalDbSystemStackMonitoringsManagementArgs, opts ...ResourceOption) (*ExternalDbSystemStackMonitoringsManagement, error)
public ExternalDbSystemStackMonitoringsManagement(string name, ExternalDbSystemStackMonitoringsManagementArgs args, CustomResourceOptions? opts = null)
public ExternalDbSystemStackMonitoringsManagement(String name, ExternalDbSystemStackMonitoringsManagementArgs args)
public ExternalDbSystemStackMonitoringsManagement(String name, ExternalDbSystemStackMonitoringsManagementArgs args, CustomResourceOptions options)
type: oci:DatabaseManagement:ExternalDbSystemStackMonitoringsManagement
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 ExternalDbSystemStackMonitoringsManagementArgs
- 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 ExternalDbSystemStackMonitoringsManagementArgs
- 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 ExternalDbSystemStackMonitoringsManagementArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ExternalDbSystemStackMonitoringsManagementArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ExternalDbSystemStackMonitoringsManagementArgs
- 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 externalDbSystemStackMonitoringsManagementResource = new Oci.DatabaseManagement.ExternalDbSystemStackMonitoringsManagement("externalDbSystemStackMonitoringsManagementResource", new()
{
EnableStackMonitoring = false,
ExternalDbSystemId = "string",
IsEnabled = false,
Metadata = "string",
});
example, err := DatabaseManagement.NewExternalDbSystemStackMonitoringsManagement(ctx, "externalDbSystemStackMonitoringsManagementResource", &DatabaseManagement.ExternalDbSystemStackMonitoringsManagementArgs{
EnableStackMonitoring: pulumi.Bool(false),
ExternalDbSystemId: pulumi.String("string"),
IsEnabled: pulumi.Bool(false),
Metadata: pulumi.String("string"),
})
var externalDbSystemStackMonitoringsManagementResource = new ExternalDbSystemStackMonitoringsManagement("externalDbSystemStackMonitoringsManagementResource", ExternalDbSystemStackMonitoringsManagementArgs.builder()
.enableStackMonitoring(false)
.externalDbSystemId("string")
.isEnabled(false)
.metadata("string")
.build());
external_db_system_stack_monitorings_management_resource = oci.database_management.ExternalDbSystemStackMonitoringsManagement("externalDbSystemStackMonitoringsManagementResource",
enable_stack_monitoring=False,
external_db_system_id="string",
is_enabled=False,
metadata="string")
const externalDbSystemStackMonitoringsManagementResource = new oci.databasemanagement.ExternalDbSystemStackMonitoringsManagement("externalDbSystemStackMonitoringsManagementResource", {
enableStackMonitoring: false,
externalDbSystemId: "string",
isEnabled: false,
metadata: "string",
});
type: oci:DatabaseManagement:ExternalDbSystemStackMonitoringsManagement
properties:
enableStackMonitoring: false
externalDbSystemId: string
isEnabled: false
metadata: string
ExternalDbSystemStackMonitoringsManagement 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 ExternalDbSystemStackMonitoringsManagement resource accepts the following input properties:
- Enable
Stack boolMonitoring (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
- External
Db stringSystem Id - The OCID of the external DB system.
- 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.
- Enable
Stack boolMonitoring (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
- External
Db stringSystem Id - The OCID of the external DB system.
- 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.
- enable
Stack BooleanMonitoring (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
- external
Db StringSystem Id - The OCID of the external DB system.
- 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.
- enable
Stack booleanMonitoring (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
- external
Db stringSystem Id - The OCID of the external DB system.
- 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.
- enable_
stack_ boolmonitoring (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
- external_
db_ strsystem_ id - The OCID of the external DB system.
- 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.
- enable
Stack BooleanMonitoring (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
- external
Db StringSystem Id - The OCID of the external DB system.
- 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 ExternalDbSystemStackMonitoringsManagement 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 ExternalDbSystemStackMonitoringsManagement Resource
Get an existing ExternalDbSystemStackMonitoringsManagement 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?: ExternalDbSystemStackMonitoringsManagementState, opts?: CustomResourceOptions): ExternalDbSystemStackMonitoringsManagement
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
enable_stack_monitoring: Optional[bool] = None,
external_db_system_id: Optional[str] = None,
is_enabled: Optional[bool] = None,
metadata: Optional[str] = None) -> ExternalDbSystemStackMonitoringsManagement
func GetExternalDbSystemStackMonitoringsManagement(ctx *Context, name string, id IDInput, state *ExternalDbSystemStackMonitoringsManagementState, opts ...ResourceOption) (*ExternalDbSystemStackMonitoringsManagement, error)
public static ExternalDbSystemStackMonitoringsManagement Get(string name, Input<string> id, ExternalDbSystemStackMonitoringsManagementState? state, CustomResourceOptions? opts = null)
public static ExternalDbSystemStackMonitoringsManagement get(String name, Output<String> id, ExternalDbSystemStackMonitoringsManagementState 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.
- Enable
Stack boolMonitoring (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
- External
Db stringSystem Id - The OCID of the external DB system.
- 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.
- Enable
Stack boolMonitoring (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
- External
Db stringSystem Id - The OCID of the external DB system.
- 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.
- enable
Stack BooleanMonitoring (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
- external
Db StringSystem Id - The OCID of the external DB system.
- 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.
- enable
Stack booleanMonitoring (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
- external
Db stringSystem Id - The OCID of the external DB system.
- 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.
- enable_
stack_ boolmonitoring (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
- external_
db_ strsystem_ id - The OCID of the external DB system.
- 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.
- enable
Stack BooleanMonitoring (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
- external
Db StringSystem Id - The OCID of the external DB system.
- 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.