1. Packages
  2. DataRobot
  3. API Docs
  4. UserMcpPromptMetadata
Viewing docs for DataRobot v0.10.30
published on Tuesday, Mar 10, 2026 by DataRobot, Inc.
datarobot logo
Viewing docs for DataRobot v0.10.30
published on Tuesday, Mar 10, 2026 by DataRobot, Inc.

    User MCP prompt metadata. This resource creates a prompt metadata entry for a given MCP server version using the User MCP public API.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as datarobot from "@datarobot/pulumi-datarobot";
    
    const example = new datarobot.UserMcpPromptMetadata("example", {
        type: "userPrompt",
        mcpServerVersionId: "69a761e40746897942318e2f",
    });
    export const exampleId = example.id;
    
    import pulumi
    import pulumi_datarobot as datarobot
    
    example = datarobot.UserMcpPromptMetadata("example",
        type="userPrompt",
        mcp_server_version_id="69a761e40746897942318e2f")
    pulumi.export("exampleId", example.id)
    
    package main
    
    import (
    	"github.com/datarobot-community/pulumi-datarobot/sdk/go/datarobot"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		example, err := datarobot.NewUserMcpPromptMetadata(ctx, "example", &datarobot.UserMcpPromptMetadataArgs{
    			Type:               pulumi.String("userPrompt"),
    			McpServerVersionId: pulumi.String("69a761e40746897942318e2f"),
    		})
    		if err != nil {
    			return err
    		}
    		ctx.Export("exampleId", example.ID())
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Datarobot = DataRobotPulumi.Datarobot;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Datarobot.UserMcpPromptMetadata("example", new()
        {
            Type = "userPrompt",
            McpServerVersionId = "69a761e40746897942318e2f",
        });
    
        return new Dictionary<string, object?>
        {
            ["exampleId"] = example.Id,
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.datarobot.UserMcpPromptMetadata;
    import com.pulumi.datarobot.UserMcpPromptMetadataArgs;
    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 example = new UserMcpPromptMetadata("example", UserMcpPromptMetadataArgs.builder()
                .type("userPrompt")
                .mcpServerVersionId("69a761e40746897942318e2f")
                .build());
    
            ctx.export("exampleId", example.id());
        }
    }
    
    resources:
      example:
        type: datarobot:UserMcpPromptMetadata
        properties:
          type: userPrompt
          mcpServerVersionId: 69a761e40746897942318e2f
    outputs:
      exampleId: ${example.id}
    

    Create UserMcpPromptMetadata Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new UserMcpPromptMetadata(name: string, args: UserMcpPromptMetadataArgs, opts?: CustomResourceOptions);
    @overload
    def UserMcpPromptMetadata(resource_name: str,
                              args: UserMcpPromptMetadataArgs,
                              opts: Optional[ResourceOptions] = None)
    
    @overload
    def UserMcpPromptMetadata(resource_name: str,
                              opts: Optional[ResourceOptions] = None,
                              mcp_server_version_id: Optional[str] = None,
                              type: Optional[str] = None,
                              name: Optional[str] = None)
    func NewUserMcpPromptMetadata(ctx *Context, name string, args UserMcpPromptMetadataArgs, opts ...ResourceOption) (*UserMcpPromptMetadata, error)
    public UserMcpPromptMetadata(string name, UserMcpPromptMetadataArgs args, CustomResourceOptions? opts = null)
    public UserMcpPromptMetadata(String name, UserMcpPromptMetadataArgs args)
    public UserMcpPromptMetadata(String name, UserMcpPromptMetadataArgs args, CustomResourceOptions options)
    
    type: datarobot:UserMcpPromptMetadata
    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 UserMcpPromptMetadataArgs
    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 UserMcpPromptMetadataArgs
    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 UserMcpPromptMetadataArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args UserMcpPromptMetadataArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args UserMcpPromptMetadataArgs
    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 userMcpPromptMetadataResource = new Datarobot.UserMcpPromptMetadata("userMcpPromptMetadataResource", new()
    {
        McpServerVersionId = "string",
        Type = "string",
        Name = "string",
    });
    
    example, err := datarobot.NewUserMcpPromptMetadata(ctx, "userMcpPromptMetadataResource", &datarobot.UserMcpPromptMetadataArgs{
    	McpServerVersionId: pulumi.String("string"),
    	Type:               pulumi.String("string"),
    	Name:               pulumi.String("string"),
    })
    
    var userMcpPromptMetadataResource = new UserMcpPromptMetadata("userMcpPromptMetadataResource", UserMcpPromptMetadataArgs.builder()
        .mcpServerVersionId("string")
        .type("string")
        .name("string")
        .build());
    
    user_mcp_prompt_metadata_resource = datarobot.UserMcpPromptMetadata("userMcpPromptMetadataResource",
        mcp_server_version_id="string",
        type="string",
        name="string")
    
    const userMcpPromptMetadataResource = new datarobot.UserMcpPromptMetadata("userMcpPromptMetadataResource", {
        mcpServerVersionId: "string",
        type: "string",
        name: "string",
    });
    
    type: datarobot:UserMcpPromptMetadata
    properties:
        mcpServerVersionId: string
        name: string
        type: string
    

    UserMcpPromptMetadata 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 UserMcpPromptMetadata resource accepts the following input properties:

    McpServerVersionId string
    The ID of the MCP server version this prompt belongs to.
    Type string
    The type of the MCP prompt.
    Name string
    The name of the MCP prompt.
    McpServerVersionId string
    The ID of the MCP server version this prompt belongs to.
    Type string
    The type of the MCP prompt.
    Name string
    The name of the MCP prompt.
    mcpServerVersionId String
    The ID of the MCP server version this prompt belongs to.
    type String
    The type of the MCP prompt.
    name String
    The name of the MCP prompt.
    mcpServerVersionId string
    The ID of the MCP server version this prompt belongs to.
    type string
    The type of the MCP prompt.
    name string
    The name of the MCP prompt.
    mcp_server_version_id str
    The ID of the MCP server version this prompt belongs to.
    type str
    The type of the MCP prompt.
    name str
    The name of the MCP prompt.
    mcpServerVersionId String
    The ID of the MCP server version this prompt belongs to.
    type String
    The type of the MCP prompt.
    name String
    The name of the MCP prompt.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the UserMcpPromptMetadata resource produces the following output properties:

    CreatedAt string
    When the MCP prompt is created.
    Id string
    The provider-assigned unique ID for this managed resource.
    UserId string
    The id of the user who created the MCP prompt.
    UserName string
    The name of the user who created the MCP prompt
    CreatedAt string
    When the MCP prompt is created.
    Id string
    The provider-assigned unique ID for this managed resource.
    UserId string
    The id of the user who created the MCP prompt.
    UserName string
    The name of the user who created the MCP prompt
    createdAt String
    When the MCP prompt is created.
    id String
    The provider-assigned unique ID for this managed resource.
    userId String
    The id of the user who created the MCP prompt.
    userName String
    The name of the user who created the MCP prompt
    createdAt string
    When the MCP prompt is created.
    id string
    The provider-assigned unique ID for this managed resource.
    userId string
    The id of the user who created the MCP prompt.
    userName string
    The name of the user who created the MCP prompt
    created_at str
    When the MCP prompt is created.
    id str
    The provider-assigned unique ID for this managed resource.
    user_id str
    The id of the user who created the MCP prompt.
    user_name str
    The name of the user who created the MCP prompt
    createdAt String
    When the MCP prompt is created.
    id String
    The provider-assigned unique ID for this managed resource.
    userId String
    The id of the user who created the MCP prompt.
    userName String
    The name of the user who created the MCP prompt

    Look up Existing UserMcpPromptMetadata Resource

    Get an existing UserMcpPromptMetadata 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?: UserMcpPromptMetadataState, opts?: CustomResourceOptions): UserMcpPromptMetadata
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            created_at: Optional[str] = None,
            mcp_server_version_id: Optional[str] = None,
            name: Optional[str] = None,
            type: Optional[str] = None,
            user_id: Optional[str] = None,
            user_name: Optional[str] = None) -> UserMcpPromptMetadata
    func GetUserMcpPromptMetadata(ctx *Context, name string, id IDInput, state *UserMcpPromptMetadataState, opts ...ResourceOption) (*UserMcpPromptMetadata, error)
    public static UserMcpPromptMetadata Get(string name, Input<string> id, UserMcpPromptMetadataState? state, CustomResourceOptions? opts = null)
    public static UserMcpPromptMetadata get(String name, Output<String> id, UserMcpPromptMetadataState state, CustomResourceOptions options)
    resources:  _:    type: datarobot:UserMcpPromptMetadata    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.
    The following state arguments are supported:
    CreatedAt string
    When the MCP prompt is created.
    McpServerVersionId string
    The ID of the MCP server version this prompt belongs to.
    Name string
    The name of the MCP prompt.
    Type string
    The type of the MCP prompt.
    UserId string
    The id of the user who created the MCP prompt.
    UserName string
    The name of the user who created the MCP prompt
    CreatedAt string
    When the MCP prompt is created.
    McpServerVersionId string
    The ID of the MCP server version this prompt belongs to.
    Name string
    The name of the MCP prompt.
    Type string
    The type of the MCP prompt.
    UserId string
    The id of the user who created the MCP prompt.
    UserName string
    The name of the user who created the MCP prompt
    createdAt String
    When the MCP prompt is created.
    mcpServerVersionId String
    The ID of the MCP server version this prompt belongs to.
    name String
    The name of the MCP prompt.
    type String
    The type of the MCP prompt.
    userId String
    The id of the user who created the MCP prompt.
    userName String
    The name of the user who created the MCP prompt
    createdAt string
    When the MCP prompt is created.
    mcpServerVersionId string
    The ID of the MCP server version this prompt belongs to.
    name string
    The name of the MCP prompt.
    type string
    The type of the MCP prompt.
    userId string
    The id of the user who created the MCP prompt.
    userName string
    The name of the user who created the MCP prompt
    created_at str
    When the MCP prompt is created.
    mcp_server_version_id str
    The ID of the MCP server version this prompt belongs to.
    name str
    The name of the MCP prompt.
    type str
    The type of the MCP prompt.
    user_id str
    The id of the user who created the MCP prompt.
    user_name str
    The name of the user who created the MCP prompt
    createdAt String
    When the MCP prompt is created.
    mcpServerVersionId String
    The ID of the MCP server version this prompt belongs to.
    name String
    The name of the MCP prompt.
    type String
    The type of the MCP prompt.
    userId String
    The id of the user who created the MCP prompt.
    userName String
    The name of the user who created the MCP prompt

    Package Details

    Repository
    datarobot datarobot-community/pulumi-datarobot
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the datarobot Terraform Provider.
    datarobot logo
    Viewing docs for DataRobot v0.10.30
    published on Tuesday, Mar 10, 2026 by DataRobot, Inc.
      Try Pulumi Cloud free. Your team will thank you.