1. Packages
  2. Packages
  3. Oracle Cloud Infrastructure
  4. API Docs
  5. DatabaseTools
  6. getDatabaseToolsMcpToolsetVersions
Viewing docs for Oracle Cloud Infrastructure v4.12.0
published on Thursday, May 21, 2026 by Pulumi
oci logo
Viewing docs for Oracle Cloud Infrastructure v4.12.0
published on Thursday, May 21, 2026 by Pulumi

    This data source provides the list of Database Tools Mcp Toolset Versions in Oracle Cloud Infrastructure Database Tools service.

    Returns a list of Database Tools Toolset versions

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testDatabaseToolsMcpToolsetVersions = oci.databasetools.getDatabaseToolsMcpToolsetVersions({
        compartmentId: compartmentId,
        databaseToolsMcpServerId: testDatabaseToolsMcpServer.id,
        displayName: databaseToolsMcpToolsetVersionDisplayName,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_database_tools_mcp_toolset_versions = oci.databasetools.get_database_tools_mcp_toolset_versions(compartment_id=compartment_id,
        database_tools_mcp_server_id=test_database_tools_mcp_server["id"],
        display_name=database_tools_mcp_toolset_version_display_name)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/v4/go/oci/databasetools"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := databasetools.GetDatabaseToolsMcpToolsetVersions(ctx, &databasetools.GetDatabaseToolsMcpToolsetVersionsArgs{
    			CompartmentId:            compartmentId,
    			DatabaseToolsMcpServerId: pulumi.StringRef(testDatabaseToolsMcpServer.Id),
    			DisplayName:              pulumi.StringRef(databaseToolsMcpToolsetVersionDisplayName),
    		}, nil)
    		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 testDatabaseToolsMcpToolsetVersions = Oci.DatabaseTools.GetDatabaseToolsMcpToolsetVersions.Invoke(new()
        {
            CompartmentId = compartmentId,
            DatabaseToolsMcpServerId = testDatabaseToolsMcpServer.Id,
            DisplayName = databaseToolsMcpToolsetVersionDisplayName,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.DatabaseTools.DatabaseToolsFunctions;
    import com.pulumi.oci.DatabaseTools.inputs.GetDatabaseToolsMcpToolsetVersionsArgs;
    import java.util.ArrayList;
    import java.util.Arrays;
    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) {
            final var testDatabaseToolsMcpToolsetVersions = DatabaseToolsFunctions.getDatabaseToolsMcpToolsetVersions(GetDatabaseToolsMcpToolsetVersionsArgs.builder()
                .compartmentId(compartmentId)
                .databaseToolsMcpServerId(testDatabaseToolsMcpServer.id())
                .displayName(databaseToolsMcpToolsetVersionDisplayName)
                .build());
    
        }
    }
    
    variables:
      testDatabaseToolsMcpToolsetVersions:
        fn::invoke:
          function: oci:DatabaseTools:getDatabaseToolsMcpToolsetVersions
          arguments:
            compartmentId: ${compartmentId}
            databaseToolsMcpServerId: ${testDatabaseToolsMcpServer.id}
            displayName: ${databaseToolsMcpToolsetVersionDisplayName}
    
    Example coming soon!
    

    Using getDatabaseToolsMcpToolsetVersions

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getDatabaseToolsMcpToolsetVersions(args: GetDatabaseToolsMcpToolsetVersionsArgs, opts?: InvokeOptions): Promise<GetDatabaseToolsMcpToolsetVersionsResult>
    function getDatabaseToolsMcpToolsetVersionsOutput(args: GetDatabaseToolsMcpToolsetVersionsOutputArgs, opts?: InvokeOptions): Output<GetDatabaseToolsMcpToolsetVersionsResult>
    def get_database_tools_mcp_toolset_versions(compartment_id: Optional[str] = None,
                                                database_tools_mcp_server_id: Optional[str] = None,
                                                display_name: Optional[str] = None,
                                                filters: Optional[Sequence[GetDatabaseToolsMcpToolsetVersionsFilter]] = None,
                                                opts: Optional[InvokeOptions] = None) -> GetDatabaseToolsMcpToolsetVersionsResult
    def get_database_tools_mcp_toolset_versions_output(compartment_id: pulumi.Input[Optional[str]] = None,
                                                database_tools_mcp_server_id: pulumi.Input[Optional[str]] = None,
                                                display_name: pulumi.Input[Optional[str]] = None,
                                                filters: pulumi.Input[Optional[Sequence[pulumi.Input[GetDatabaseToolsMcpToolsetVersionsFilterArgs]]]] = None,
                                                opts: Optional[InvokeOptions] = None) -> Output[GetDatabaseToolsMcpToolsetVersionsResult]
    func GetDatabaseToolsMcpToolsetVersions(ctx *Context, args *GetDatabaseToolsMcpToolsetVersionsArgs, opts ...InvokeOption) (*GetDatabaseToolsMcpToolsetVersionsResult, error)
    func GetDatabaseToolsMcpToolsetVersionsOutput(ctx *Context, args *GetDatabaseToolsMcpToolsetVersionsOutputArgs, opts ...InvokeOption) GetDatabaseToolsMcpToolsetVersionsResultOutput

    > Note: This function is named GetDatabaseToolsMcpToolsetVersions in the Go SDK.

    public static class GetDatabaseToolsMcpToolsetVersions 
    {
        public static Task<GetDatabaseToolsMcpToolsetVersionsResult> InvokeAsync(GetDatabaseToolsMcpToolsetVersionsArgs args, InvokeOptions? opts = null)
        public static Output<GetDatabaseToolsMcpToolsetVersionsResult> Invoke(GetDatabaseToolsMcpToolsetVersionsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetDatabaseToolsMcpToolsetVersionsResult> getDatabaseToolsMcpToolsetVersions(GetDatabaseToolsMcpToolsetVersionsArgs args, InvokeOptions options)
    public static Output<GetDatabaseToolsMcpToolsetVersionsResult> getDatabaseToolsMcpToolsetVersions(GetDatabaseToolsMcpToolsetVersionsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: oci:DatabaseTools/getDatabaseToolsMcpToolsetVersions:getDatabaseToolsMcpToolsetVersions
      arguments:
        # arguments dictionary
    data "oci_databasetools_getdatabasetoolsmcptoolsetversions" "name" {
        # arguments
    }

    The following arguments are supported:

    CompartmentId string
    The OCID of the compartment in which to list resources.
    DatabaseToolsMcpServerId string
    A filter to return only resources matching the specified databaseToolsMcpServerId.
    DisplayName string
    A filter to return only resources that match the entire specified display name.
    Filters List<GetDatabaseToolsMcpToolsetVersionsFilter>
    CompartmentId string
    The OCID of the compartment in which to list resources.
    DatabaseToolsMcpServerId string
    A filter to return only resources matching the specified databaseToolsMcpServerId.
    DisplayName string
    A filter to return only resources that match the entire specified display name.
    Filters []GetDatabaseToolsMcpToolsetVersionsFilter
    compartment_id string
    The OCID of the compartment in which to list resources.
    database_tools_mcp_server_id string
    A filter to return only resources matching the specified databaseToolsMcpServerId.
    display_name string
    A filter to return only resources that match the entire specified display name.
    filters list(object)
    compartmentId String
    The OCID of the compartment in which to list resources.
    databaseToolsMcpServerId String
    A filter to return only resources matching the specified databaseToolsMcpServerId.
    displayName String
    A filter to return only resources that match the entire specified display name.
    filters List<GetMcpToolsetVersionsFilter>
    compartmentId string
    The OCID of the compartment in which to list resources.
    databaseToolsMcpServerId string
    A filter to return only resources matching the specified databaseToolsMcpServerId.
    displayName string
    A filter to return only resources that match the entire specified display name.
    filters GetDatabaseToolsMcpToolsetVersionsFilter[]
    compartment_id str
    The OCID of the compartment in which to list resources.
    database_tools_mcp_server_id str
    A filter to return only resources matching the specified databaseToolsMcpServerId.
    display_name str
    A filter to return only resources that match the entire specified display name.
    filters Sequence[GetDatabaseToolsMcpToolsetVersionsFilter]
    compartmentId String
    The OCID of the compartment in which to list resources.
    databaseToolsMcpServerId String
    A filter to return only resources matching the specified databaseToolsMcpServerId.
    displayName String
    A filter to return only resources that match the entire specified display name.
    filters List<Property Map>

    getDatabaseToolsMcpToolsetVersions Result

    The following output properties are available:

    CompartmentId string
    DatabaseToolsMcpToolsetVersionCollections List<GetDatabaseToolsMcpToolsetVersionsDatabaseToolsMcpToolsetVersionCollection>
    The list of database_tools_mcp_toolset_version_collection.
    Id string
    The provider-assigned unique ID for this managed resource.
    DatabaseToolsMcpServerId string
    DisplayName string
    The display name of the tool.
    Filters List<GetDatabaseToolsMcpToolsetVersionsFilter>
    CompartmentId string
    DatabaseToolsMcpToolsetVersionCollections []GetDatabaseToolsMcpToolsetVersionsDatabaseToolsMcpToolsetVersionCollection
    The list of database_tools_mcp_toolset_version_collection.
    Id string
    The provider-assigned unique ID for this managed resource.
    DatabaseToolsMcpServerId string
    DisplayName string
    The display name of the tool.
    Filters []GetDatabaseToolsMcpToolsetVersionsFilter
    compartment_id string
    database_tools_mcp_toolset_version_collections list(object)
    The list of database_tools_mcp_toolset_version_collection.
    id string
    The provider-assigned unique ID for this managed resource.
    database_tools_mcp_server_id string
    display_name string
    The display name of the tool.
    filters list(object)
    compartmentId String
    databaseToolsMcpToolsetVersionCollections List<GetMcpToolsetVersionsMcpToolsetVersionCollection>
    The list of database_tools_mcp_toolset_version_collection.
    id String
    The provider-assigned unique ID for this managed resource.
    databaseToolsMcpServerId String
    displayName String
    The display name of the tool.
    filters List<GetMcpToolsetVersionsFilter>
    compartmentId string
    databaseToolsMcpToolsetVersionCollections GetDatabaseToolsMcpToolsetVersionsDatabaseToolsMcpToolsetVersionCollection[]
    The list of database_tools_mcp_toolset_version_collection.
    id string
    The provider-assigned unique ID for this managed resource.
    databaseToolsMcpServerId string
    displayName string
    The display name of the tool.
    filters GetDatabaseToolsMcpToolsetVersionsFilter[]
    compartment_id str
    database_tools_mcp_toolset_version_collections Sequence[GetDatabaseToolsMcpToolsetVersionsDatabaseToolsMcpToolsetVersionCollection]
    The list of database_tools_mcp_toolset_version_collection.
    id str
    The provider-assigned unique ID for this managed resource.
    database_tools_mcp_server_id str
    display_name str
    The display name of the tool.
    filters Sequence[GetDatabaseToolsMcpToolsetVersionsFilter]
    compartmentId String
    databaseToolsMcpToolsetVersionCollections List<Property Map>
    The list of database_tools_mcp_toolset_version_collection.
    id String
    The provider-assigned unique ID for this managed resource.
    databaseToolsMcpServerId String
    displayName String
    The display name of the tool.
    filters List<Property Map>

    Supporting Types

    GetDatabaseToolsMcpToolsetVersionsDatabaseToolsMcpToolsetVersionCollection

    items list(object)
    Array of MCP toolset type version summary items.
    items List<GetMcpToolsetVersionsMcpToolsetVersionCollectionItem>
    Array of MCP toolset type version summary items.
    items List<Property Map>
    Array of MCP toolset type version summary items.

    GetDatabaseToolsMcpToolsetVersionsDatabaseToolsMcpToolsetVersionCollectionItem

    DefaultVersion int
    The default version for this toolset type.
    Type string
    The MCP toolset type.
    Versions List<GetDatabaseToolsMcpToolsetVersionsDatabaseToolsMcpToolsetVersionCollectionItemVersion>
    The version configurations available for this toolset type.
    DefaultVersion int
    The default version for this toolset type.
    Type string
    The MCP toolset type.
    Versions []GetDatabaseToolsMcpToolsetVersionsDatabaseToolsMcpToolsetVersionCollectionItemVersion
    The version configurations available for this toolset type.
    default_version number
    The default version for this toolset type.
    type string
    The MCP toolset type.
    versions list(object)
    The version configurations available for this toolset type.
    defaultVersion Integer
    The default version for this toolset type.
    type String
    The MCP toolset type.
    versions List<GetMcpToolsetVersionsMcpToolsetVersionCollectionItemVersion>
    The version configurations available for this toolset type.
    defaultVersion number
    The default version for this toolset type.
    type string
    The MCP toolset type.
    versions GetDatabaseToolsMcpToolsetVersionsDatabaseToolsMcpToolsetVersionCollectionItemVersion[]
    The version configurations available for this toolset type.
    default_version int
    The default version for this toolset type.
    type str
    The MCP toolset type.
    versions Sequence[GetDatabaseToolsMcpToolsetVersionsDatabaseToolsMcpToolsetVersionCollectionItemVersion]
    The version configurations available for this toolset type.
    defaultVersion Number
    The default version for this toolset type.
    type String
    The MCP toolset type.
    versions List<Property Map>
    The version configurations available for this toolset type.

    GetDatabaseToolsMcpToolsetVersionsDatabaseToolsMcpToolsetVersionCollectionItemVersion

    DefaultAllowedRoles List<string>
    The roles granted access to this tool by default.
    DefaultReportAllowedRoles List<string>
    The roles granted access to this toolset version by default.
    Description string
    The description of the tool.
    Features List<string>
    Optional feature flags or attributes for this version.
    Tools List<GetDatabaseToolsMcpToolsetVersionsDatabaseToolsMcpToolsetVersionCollectionItemVersionTool>
    The tools available in this version.
    Version int
    The version number.
    DefaultAllowedRoles []string
    The roles granted access to this tool by default.
    DefaultReportAllowedRoles []string
    The roles granted access to this toolset version by default.
    Description string
    The description of the tool.
    Features []string
    Optional feature flags or attributes for this version.
    Tools []GetDatabaseToolsMcpToolsetVersionsDatabaseToolsMcpToolsetVersionCollectionItemVersionTool
    The tools available in this version.
    Version int
    The version number.
    default_allowed_roles list(string)
    The roles granted access to this tool by default.
    default_report_allowed_roles list(string)
    The roles granted access to this toolset version by default.
    description string
    The description of the tool.
    features list(string)
    Optional feature flags or attributes for this version.
    tools list(object)
    The tools available in this version.
    version number
    The version number.
    defaultAllowedRoles List<String>
    The roles granted access to this tool by default.
    defaultReportAllowedRoles List<String>
    The roles granted access to this toolset version by default.
    description String
    The description of the tool.
    features List<String>
    Optional feature flags or attributes for this version.
    tools List<GetMcpToolsetVersionsMcpToolsetVersionCollectionItemVersionTool>
    The tools available in this version.
    version Integer
    The version number.
    defaultAllowedRoles string[]
    The roles granted access to this tool by default.
    defaultReportAllowedRoles string[]
    The roles granted access to this toolset version by default.
    description string
    The description of the tool.
    features string[]
    Optional feature flags or attributes for this version.
    tools GetDatabaseToolsMcpToolsetVersionsDatabaseToolsMcpToolsetVersionCollectionItemVersionTool[]
    The tools available in this version.
    version number
    The version number.
    default_allowed_roles Sequence[str]
    The roles granted access to this tool by default.
    default_report_allowed_roles Sequence[str]
    The roles granted access to this toolset version by default.
    description str
    The description of the tool.
    features Sequence[str]
    Optional feature flags or attributes for this version.
    tools Sequence[GetDatabaseToolsMcpToolsetVersionsDatabaseToolsMcpToolsetVersionCollectionItemVersionTool]
    The tools available in this version.
    version int
    The version number.
    defaultAllowedRoles List<String>
    The roles granted access to this tool by default.
    defaultReportAllowedRoles List<String>
    The roles granted access to this toolset version by default.
    description String
    The description of the tool.
    features List<String>
    Optional feature flags or attributes for this version.
    tools List<Property Map>
    The tools available in this version.
    version Number
    The version number.

    GetDatabaseToolsMcpToolsetVersionsDatabaseToolsMcpToolsetVersionCollectionItemVersionTool

    DefaultAllowedRoles List<string>
    The roles granted access to this tool by default.
    DefaultStatus string
    The default status of the tool in this version.
    Description string
    The description of the tool.
    DisplayName string
    A filter to return only resources that match the entire specified display name.
    Name string
    The unique name of the tool.
    DefaultAllowedRoles []string
    The roles granted access to this tool by default.
    DefaultStatus string
    The default status of the tool in this version.
    Description string
    The description of the tool.
    DisplayName string
    A filter to return only resources that match the entire specified display name.
    Name string
    The unique name of the tool.
    default_allowed_roles list(string)
    The roles granted access to this tool by default.
    default_status string
    The default status of the tool in this version.
    description string
    The description of the tool.
    display_name string
    A filter to return only resources that match the entire specified display name.
    name string
    The unique name of the tool.
    defaultAllowedRoles List<String>
    The roles granted access to this tool by default.
    defaultStatus String
    The default status of the tool in this version.
    description String
    The description of the tool.
    displayName String
    A filter to return only resources that match the entire specified display name.
    name String
    The unique name of the tool.
    defaultAllowedRoles string[]
    The roles granted access to this tool by default.
    defaultStatus string
    The default status of the tool in this version.
    description string
    The description of the tool.
    displayName string
    A filter to return only resources that match the entire specified display name.
    name string
    The unique name of the tool.
    default_allowed_roles Sequence[str]
    The roles granted access to this tool by default.
    default_status str
    The default status of the tool in this version.
    description str
    The description of the tool.
    display_name str
    A filter to return only resources that match the entire specified display name.
    name str
    The unique name of the tool.
    defaultAllowedRoles List<String>
    The roles granted access to this tool by default.
    defaultStatus String
    The default status of the tool in this version.
    description String
    The description of the tool.
    displayName String
    A filter to return only resources that match the entire specified display name.
    name String
    The unique name of the tool.

    GetDatabaseToolsMcpToolsetVersionsFilter

    Name string
    The unique name of the tool.
    Values List<string>
    Regex bool
    Name string
    The unique name of the tool.
    Values []string
    Regex bool
    name string
    The unique name of the tool.
    values list(string)
    regex bool
    name String
    The unique name of the tool.
    values List<String>
    regex Boolean
    name string
    The unique name of the tool.
    values string[]
    regex boolean
    name str
    The unique name of the tool.
    values Sequence[str]
    regex bool
    name String
    The unique name of the tool.
    values List<String>
    regex Boolean

    Package Details

    Repository
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo
    Viewing docs for Oracle Cloud Infrastructure v4.12.0
    published on Thursday, May 21, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial