oci_database_tools_database_tools_mcp_server

This resource provides the Database Tools Mcp Server resource in Oracle Cloud Infrastructure Database Tools service. Api doc link for the resource: https://docs.oracle.com/iaas/api/#/en/database-tools/latest/DatabaseToolsMcpServer

Example terraform configs related to the resource : https://github.com/oracle/terraform-provider-oci/tree/master/examples/databaseTools

Creates a new Database Tools MCP server.

Example Usage

resource "oci_database_tools_database_tools_mcp_server" "test_database_tools_mcp_server" {
	#Required
	compartment_id = var.compartment_id
	database_tools_connection_id = oci_database_tools_database_tools_connection.test_database_tools_connection.id
	display_name = var.database_tools_mcp_server_display_name
	domain_id = oci_identity_domain.test_domain.id
	storage {
		#Required
		type = var.database_tools_mcp_server_storage_type

		#Optional
		bucket {

			#Optional
			bucket = var.database_tools_mcp_server_storage_bucket_bucket
			namespace = var.database_tools_mcp_server_storage_bucket_namespace
		}
	}
	type = var.database_tools_mcp_server_type

	#Optional
	access_token_expiry_in_seconds = var.database_tools_mcp_server_access_token_expiry_in_seconds
	custom_roles {
		#Required
		description = var.database_tools_mcp_server_custom_roles_description
		display_name = var.database_tools_mcp_server_custom_roles_display_name
	}
	defined_tags = {"foo-namespace.bar-key"= "value"}
	description = var.database_tools_mcp_server_description
	freeform_tags = {"bar-key"= "value"}
	locks {
		#Required
		type = var.database_tools_mcp_server_locks_type

		#Optional
		message = var.database_tools_mcp_server_locks_message
		related_resource_id = oci_cloud_guard_resource.test_resource.id
		time_created = var.database_tools_mcp_server_locks_time_created
	}
	refresh_token_expiry_in_seconds = var.database_tools_mcp_server_refresh_token_expiry_in_seconds
	runtime_identity = var.database_tools_mcp_server_runtime_identity
}

Argument Reference

The following arguments are supported:

** 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

Attributes Reference

The following attributes are exported:

Timeouts

The timeouts block allows you to specify timeouts for certain operations: * create - (Defaults to 20 minutes), when creating the Database Tools Mcp Server * update - (Defaults to 20 minutes), when updating the Database Tools Mcp Server * delete - (Defaults to 20 minutes), when destroying the Database Tools Mcp Server

Import

DatabaseToolsMcpServers can be imported using the id, e.g.

$ terraform import oci_database_tools_database_tools_mcp_server.test_database_tools_mcp_server "id"