import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * This resource provides the Database Insight resource in Oracle Cloud Infrastructure Opsi service. * Api doc link for the resource: https://docs.oracle.com/iaas/api/#/en/operations-insights/latest/DatabaseInsight * * Example terraform configs related to the resource : https://github.com/oracle/terraform-provider-oci/tree/master/examples/osi * * Create a Database Insight resource for a Enterprise Manager(EM) managed database in Operations Insights. The database will be enabled in Operations Insights. Database metric collection and analysis will be started. The Database Insight resource for Autonomous Database and Management Agent managed external Database needs to be created by Database service terraform provider. * * ## Import * * DatabaseInsights can be imported using the `id`, e.g. * * ```sh * $ pulumi import oci:Opsi/databaseInsight:DatabaseInsight test_database_insight "id" * ``` */ export declare class DatabaseInsight extends pulumi.CustomResource { /** * Get an existing DatabaseInsight resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: DatabaseInsightState, opts?: pulumi.CustomResourceOptions): DatabaseInsight; /** * Returns true if the given object is an instance of DatabaseInsight. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is DatabaseInsight; /** * (Updatable) Compartment Identifier of database */ readonly compartmentId: pulumi.Output; /** * User credential details to connect to the database. */ readonly connectionCredentialDetails: pulumi.Output; /** * Connection details to connect to the database. HostName, protocol, and port should be specified. */ readonly connectionDetails: pulumi.Output; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of External Database Connector */ readonly connectorId: pulumi.Output; /** * User credential details to connect to the database. */ readonly credentialDetails: pulumi.Output; /** * A message describing the status of the database connection of this resource. For example, it can be used to provide actionable information about the permission and content validity of the database connection. */ readonly databaseConnectionStatusDetails: pulumi.Output; /** * (Updatable) The DBM owned database connector [OCID](https://www.terraform.io/iaas/database-management/doc/view-connector-details.html) mapping to the database credentials and connection details. */ readonly databaseConnectorId: pulumi.Output; /** * Display name of database */ readonly databaseDisplayName: pulumi.Output; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the database. */ readonly databaseId: pulumi.Output; /** * Name of database */ readonly databaseName: pulumi.Output; /** * Oracle Cloud Infrastructure database resource type */ readonly databaseResourceType: pulumi.Output; /** * Ops Insights internal representation of the database type. */ readonly databaseType: pulumi.Output; /** * The version of the database. */ readonly databaseVersion: pulumi.Output; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Management private endpoint. This field and opsiPrivateEndpointId are mutually exclusive. If DBM private endpoint ID is provided, a new OPSI private endpoint ID will be created. */ readonly dbmPrivateEndpointId: pulumi.Output; /** * (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"foo-namespace.bar-key": "value"}` */ readonly definedTags: pulumi.Output<{ [key: string]: string; }>; /** * Database Deployment Type (EXACS will be supported in the future) */ readonly deploymentType: pulumi.Output; /** * OPSI Enterprise Manager Bridge OCID */ readonly enterpriseManagerBridgeId: pulumi.Output; /** * Enterprise Manager Entity Display Name */ readonly enterpriseManagerEntityDisplayName: pulumi.Output; /** * Enterprise Manager Entity Unique Identifier */ readonly enterpriseManagerEntityIdentifier: pulumi.Output; /** * Enterprise Manager Entity Name */ readonly enterpriseManagerEntityName: pulumi.Output; /** * Enterprise Manager Entity Type */ readonly enterpriseManagerEntityType: pulumi.Output; /** * Enterprise Manager Unique Identifier */ readonly enterpriseManagerIdentifier: pulumi.Output; /** * (Updatable) Source of the database entity. */ readonly entitySource: pulumi.Output; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Exadata insight. */ readonly exadataInsightId: pulumi.Output; /** * (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: `{"bar-key": "value"}` */ readonly freeformTags: pulumi.Output<{ [key: string]: string; }>; /** * Flag is to identify if advanced features for autonomous database is enabled or not */ readonly isAdvancedFeaturesEnabled: pulumi.Output; /** * Specifies if MYSQL DB System has heatwave cluster attached. */ readonly isHeatWaveClusterAttached: pulumi.Output; /** * Specifies if MYSQL DB System is highly available. */ readonly isHighlyAvailable: pulumi.Output; /** * A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state. */ readonly lifecycleDetails: pulumi.Output; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Management Agent */ readonly managementAgentId: pulumi.Output; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the OPSI private endpoint */ readonly opsiPrivateEndpointId: pulumi.Output; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM Cluster or DB System ID, depending on which configuration the resource belongs to. */ readonly parentId: pulumi.Output; /** * Processor count. This is the OCPU count for Autonomous Database and CPU core count for other database types. */ readonly processorCount: pulumi.Output; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Exadata Infrastructure. */ readonly rootId: pulumi.Output; /** * Database service name used for connection requests. */ readonly serviceName: pulumi.Output; /** * The current state of the database. */ readonly state: pulumi.Output; /** * (Updatable) Status of the resource. Example: "ENABLED", "DISABLED". Resource can be either enabled or disabled by updating the value of status field to either "ENABLED" or "DISABLED" * * ** 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. The resource destruction here is basically a soft delete. User cannot create resource using the same EM managed bridge OCID. If resource is in enabled state during destruction, the resource will be disabled automatically before performing delete operation. */ readonly status: pulumi.Output; /** * System tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"orcl-cloud.free-tier-retained": "true"}` */ readonly systemTags: pulumi.Output<{ [key: string]: string; }>; /** * The time the database insight was first enabled. An RFC3339 formatted datetime string */ readonly timeCreated: pulumi.Output; /** * The time the database insight was updated. An RFC3339 formatted datetime string */ readonly timeUpdated: pulumi.Output; /** * Create a DatabaseInsight resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: DatabaseInsightArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering DatabaseInsight resources. */ export interface DatabaseInsightState { /** * (Updatable) Compartment Identifier of database */ compartmentId?: pulumi.Input; /** * User credential details to connect to the database. */ connectionCredentialDetails?: pulumi.Input; /** * Connection details to connect to the database. HostName, protocol, and port should be specified. */ connectionDetails?: pulumi.Input; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of External Database Connector */ connectorId?: pulumi.Input; /** * User credential details to connect to the database. */ credentialDetails?: pulumi.Input; /** * A message describing the status of the database connection of this resource. For example, it can be used to provide actionable information about the permission and content validity of the database connection. */ databaseConnectionStatusDetails?: pulumi.Input; /** * (Updatable) The DBM owned database connector [OCID](https://www.terraform.io/iaas/database-management/doc/view-connector-details.html) mapping to the database credentials and connection details. */ databaseConnectorId?: pulumi.Input; /** * Display name of database */ databaseDisplayName?: pulumi.Input; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the database. */ databaseId?: pulumi.Input; /** * Name of database */ databaseName?: pulumi.Input; /** * Oracle Cloud Infrastructure database resource type */ databaseResourceType?: pulumi.Input; /** * Ops Insights internal representation of the database type. */ databaseType?: pulumi.Input; /** * The version of the database. */ databaseVersion?: pulumi.Input; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Management private endpoint. This field and opsiPrivateEndpointId are mutually exclusive. If DBM private endpoint ID is provided, a new OPSI private endpoint ID will be created. */ dbmPrivateEndpointId?: pulumi.Input; /** * (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"foo-namespace.bar-key": "value"}` */ definedTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * Database Deployment Type (EXACS will be supported in the future) */ deploymentType?: pulumi.Input; /** * OPSI Enterprise Manager Bridge OCID */ enterpriseManagerBridgeId?: pulumi.Input; /** * Enterprise Manager Entity Display Name */ enterpriseManagerEntityDisplayName?: pulumi.Input; /** * Enterprise Manager Entity Unique Identifier */ enterpriseManagerEntityIdentifier?: pulumi.Input; /** * Enterprise Manager Entity Name */ enterpriseManagerEntityName?: pulumi.Input; /** * Enterprise Manager Entity Type */ enterpriseManagerEntityType?: pulumi.Input; /** * Enterprise Manager Unique Identifier */ enterpriseManagerIdentifier?: pulumi.Input; /** * (Updatable) Source of the database entity. */ entitySource?: pulumi.Input; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Exadata insight. */ exadataInsightId?: pulumi.Input; /** * (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: `{"bar-key": "value"}` */ freeformTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * Flag is to identify if advanced features for autonomous database is enabled or not */ isAdvancedFeaturesEnabled?: pulumi.Input; /** * Specifies if MYSQL DB System has heatwave cluster attached. */ isHeatWaveClusterAttached?: pulumi.Input; /** * Specifies if MYSQL DB System is highly available. */ isHighlyAvailable?: pulumi.Input; /** * A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state. */ lifecycleDetails?: pulumi.Input; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Management Agent */ managementAgentId?: pulumi.Input; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the OPSI private endpoint */ opsiPrivateEndpointId?: pulumi.Input; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the VM Cluster or DB System ID, depending on which configuration the resource belongs to. */ parentId?: pulumi.Input; /** * Processor count. This is the OCPU count for Autonomous Database and CPU core count for other database types. */ processorCount?: pulumi.Input; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Exadata Infrastructure. */ rootId?: pulumi.Input; /** * Database service name used for connection requests. */ serviceName?: pulumi.Input; /** * The current state of the database. */ state?: pulumi.Input; /** * (Updatable) Status of the resource. Example: "ENABLED", "DISABLED". Resource can be either enabled or disabled by updating the value of status field to either "ENABLED" or "DISABLED" * * ** 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. The resource destruction here is basically a soft delete. User cannot create resource using the same EM managed bridge OCID. If resource is in enabled state during destruction, the resource will be disabled automatically before performing delete operation. */ status?: pulumi.Input; /** * System tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"orcl-cloud.free-tier-retained": "true"}` */ systemTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * The time the database insight was first enabled. An RFC3339 formatted datetime string */ timeCreated?: pulumi.Input; /** * The time the database insight was updated. An RFC3339 formatted datetime string */ timeUpdated?: pulumi.Input; } /** * The set of arguments for constructing a DatabaseInsight resource. */ export interface DatabaseInsightArgs { /** * (Updatable) Compartment Identifier of database */ compartmentId: pulumi.Input; /** * User credential details to connect to the database. */ connectionCredentialDetails?: pulumi.Input; /** * Connection details to connect to the database. HostName, protocol, and port should be specified. */ connectionDetails?: pulumi.Input; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of External Database Connector */ connectorId?: pulumi.Input; /** * User credential details to connect to the database. */ credentialDetails?: pulumi.Input; /** * A message describing the status of the database connection of this resource. For example, it can be used to provide actionable information about the permission and content validity of the database connection. */ databaseConnectionStatusDetails?: pulumi.Input; /** * (Updatable) The DBM owned database connector [OCID](https://www.terraform.io/iaas/database-management/doc/view-connector-details.html) mapping to the database credentials and connection details. */ databaseConnectorId?: pulumi.Input; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the database. */ databaseId?: pulumi.Input; /** * Oracle Cloud Infrastructure database resource type */ databaseResourceType?: pulumi.Input; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Management private endpoint. This field and opsiPrivateEndpointId are mutually exclusive. If DBM private endpoint ID is provided, a new OPSI private endpoint ID will be created. */ dbmPrivateEndpointId?: pulumi.Input; /** * (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"foo-namespace.bar-key": "value"}` */ definedTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * Database Deployment Type (EXACS will be supported in the future) */ deploymentType?: pulumi.Input; /** * OPSI Enterprise Manager Bridge OCID */ enterpriseManagerBridgeId?: pulumi.Input; /** * Enterprise Manager Entity Unique Identifier */ enterpriseManagerEntityIdentifier?: pulumi.Input; /** * Enterprise Manager Unique Identifier */ enterpriseManagerIdentifier?: pulumi.Input; /** * (Updatable) Source of the database entity. */ entitySource: pulumi.Input; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Exadata insight. */ exadataInsightId?: pulumi.Input; /** * (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: `{"bar-key": "value"}` */ freeformTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * Flag is to identify if advanced features for autonomous database is enabled or not */ isAdvancedFeaturesEnabled?: pulumi.Input; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Management Agent */ managementAgentId?: pulumi.Input; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the OPSI private endpoint */ opsiPrivateEndpointId?: pulumi.Input; /** * Database service name used for connection requests. */ serviceName?: pulumi.Input; /** * (Updatable) Status of the resource. Example: "ENABLED", "DISABLED". Resource can be either enabled or disabled by updating the value of status field to either "ENABLED" or "DISABLED" * * ** 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. The resource destruction here is basically a soft delete. User cannot create resource using the same EM managed bridge OCID. If resource is in enabled state during destruction, the resource will be disabled automatically before performing delete operation. */ status?: pulumi.Input; /** * System tags for this resource. Each key is predefined and scoped to a namespace. Example: `{"orcl-cloud.free-tier-retained": "true"}` */ systemTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; } //# sourceMappingURL=databaseInsight.d.ts.map