1. Packages
  2. Packages
  3. Thoth
  4. API Docs
  5. mcp
  6. Vendor
Viewing docs for Thoth v0.1.15
published on Thursday, Jul 23, 2026 by Aten Security
thoth logo
Viewing docs for Thoth v0.1.15
published on Thursday, Jul 23, 2026 by Aten Security

    Create Vendor Resource

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

    Constructor syntax

    new Vendor(name: string, args: VendorArgs, opts?: CustomResourceOptions);
    @overload
    def Vendor(resource_name: str,
               args: VendorArgs,
               opts: Optional[ResourceOptions] = None)
    
    @overload
    def Vendor(resource_name: str,
               opts: Optional[ResourceOptions] = None,
               display_name: Optional[str] = None,
               host_patterns: Optional[Sequence[str]] = None,
               vendor_id: Optional[str] = None,
               approved: Optional[bool] = None,
               last_seen_at: Optional[str] = None,
               notes: Optional[str] = None,
               source: Optional[str] = None)
    func NewVendor(ctx *Context, name string, args VendorArgs, opts ...ResourceOption) (*Vendor, error)
    public Vendor(string name, VendorArgs args, CustomResourceOptions? opts = null)
    public Vendor(String name, VendorArgs args)
    public Vendor(String name, VendorArgs args, CustomResourceOptions options)
    
    type: thoth:mcp:Vendor
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "thoth_mcp_vendor" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args VendorArgs
    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 VendorArgs
    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 VendorArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args VendorArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args VendorArgs
    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 vendorResource = new Thoth.Mcp.Vendor("vendorResource", new()
    {
        DisplayName = "string",
        HostPatterns = new[]
        {
            "string",
        },
        VendorId = "string",
        Approved = false,
        LastSeenAt = "string",
        Notes = "string",
        Source = "string",
    });
    
    example, err := mcp.NewVendor(ctx, "vendorResource", &mcp.VendorArgs{
    	DisplayName: pulumi.String("string"),
    	HostPatterns: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	VendorId:   pulumi.String("string"),
    	Approved:   pulumi.Bool(false),
    	LastSeenAt: pulumi.String("string"),
    	Notes:      pulumi.String("string"),
    	Source:     pulumi.String("string"),
    })
    
    resource "thoth_mcp_vendor" "vendorResource" {
      lifecycle {
        create_before_destroy = true
      }
      display_name  = "string"
      host_patterns = ["string"]
      vendor_id     = "string"
      approved      = false
      last_seen_at  = "string"
      notes         = "string"
      source        = "string"
    }
    
    var vendorResource = new Vendor("vendorResource", VendorArgs.builder()
        .displayName("string")
        .hostPatterns("string")
        .vendorId("string")
        .approved(false)
        .lastSeenAt("string")
        .notes("string")
        .source("string")
        .build());
    
    vendor_resource = thoth.mcp.Vendor("vendorResource",
        display_name="string",
        host_patterns=["string"],
        vendor_id="string",
        approved=False,
        last_seen_at="string",
        notes="string",
        source="string")
    
    const vendorResource = new thoth.mcp.Vendor("vendorResource", {
        displayName: "string",
        hostPatterns: ["string"],
        vendorId: "string",
        approved: false,
        lastSeenAt: "string",
        notes: "string",
        source: "string",
    });
    
    type: thoth:mcp:Vendor
    properties:
        approved: false
        displayName: string
        hostPatterns:
            - string
        lastSeenAt: string
        notes: string
        source: string
        vendorId: string
    

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

    DisplayName string
    Human-friendly vendor display name.
    HostPatterns List<string>
    Allowed host patterns for this vendor (for example api.openai.com).
    VendorId string
    Stable vendor identifier.
    Approved bool
    Whether this vendor is approved for pass-through MCP host access.
    LastSeenAt string
    Last observed timestamp (RFC3339) for this vendor in runtime traffic.
    Notes string
    Optional reviewer notes for this vendor entry.
    Source string
    Vendor entry source (for example manual, discovered).
    DisplayName string
    Human-friendly vendor display name.
    HostPatterns []string
    Allowed host patterns for this vendor (for example api.openai.com).
    VendorId string
    Stable vendor identifier.
    Approved bool
    Whether this vendor is approved for pass-through MCP host access.
    LastSeenAt string
    Last observed timestamp (RFC3339) for this vendor in runtime traffic.
    Notes string
    Optional reviewer notes for this vendor entry.
    Source string
    Vendor entry source (for example manual, discovered).
    display_name string
    Human-friendly vendor display name.
    host_patterns list(string)
    Allowed host patterns for this vendor (for example api.openai.com).
    vendor_id string
    Stable vendor identifier.
    approved bool
    Whether this vendor is approved for pass-through MCP host access.
    last_seen_at string
    Last observed timestamp (RFC3339) for this vendor in runtime traffic.
    notes string
    Optional reviewer notes for this vendor entry.
    source string
    Vendor entry source (for example manual, discovered).
    displayName String
    Human-friendly vendor display name.
    hostPatterns List<String>
    Allowed host patterns for this vendor (for example api.openai.com).
    vendorId String
    Stable vendor identifier.
    approved Boolean
    Whether this vendor is approved for pass-through MCP host access.
    lastSeenAt String
    Last observed timestamp (RFC3339) for this vendor in runtime traffic.
    notes String
    Optional reviewer notes for this vendor entry.
    source String
    Vendor entry source (for example manual, discovered).
    displayName string
    Human-friendly vendor display name.
    hostPatterns string[]
    Allowed host patterns for this vendor (for example api.openai.com).
    vendorId string
    Stable vendor identifier.
    approved boolean
    Whether this vendor is approved for pass-through MCP host access.
    lastSeenAt string
    Last observed timestamp (RFC3339) for this vendor in runtime traffic.
    notes string
    Optional reviewer notes for this vendor entry.
    source string
    Vendor entry source (for example manual, discovered).
    display_name str
    Human-friendly vendor display name.
    host_patterns Sequence[str]
    Allowed host patterns for this vendor (for example api.openai.com).
    vendor_id str
    Stable vendor identifier.
    approved bool
    Whether this vendor is approved for pass-through MCP host access.
    last_seen_at str
    Last observed timestamp (RFC3339) for this vendor in runtime traffic.
    notes str
    Optional reviewer notes for this vendor entry.
    source str
    Vendor entry source (for example manual, discovered).
    displayName String
    Human-friendly vendor display name.
    hostPatterns List<String>
    Allowed host patterns for this vendor (for example api.openai.com).
    vendorId String
    Stable vendor identifier.
    approved Boolean
    Whether this vendor is approved for pass-through MCP host access.
    lastSeenAt String
    Last observed timestamp (RFC3339) for this vendor in runtime traffic.
    notes String
    Optional reviewer notes for this vendor entry.
    source String
    Vendor entry source (for example manual, discovered).

    Outputs

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

    CreatedAt string
    Creation timestamp.
    Id string
    The provider-assigned unique ID for this managed resource.
    TenantId string
    Tenant ID from provider configuration.
    UpdatedAt string
    Last update timestamp.
    CreatedAt string
    Creation timestamp.
    Id string
    The provider-assigned unique ID for this managed resource.
    TenantId string
    Tenant ID from provider configuration.
    UpdatedAt string
    Last update timestamp.
    created_at string
    Creation timestamp.
    id string
    The provider-assigned unique ID for this managed resource.
    tenant_id string
    Tenant ID from provider configuration.
    updated_at string
    Last update timestamp.
    createdAt String
    Creation timestamp.
    id String
    The provider-assigned unique ID for this managed resource.
    tenantId String
    Tenant ID from provider configuration.
    updatedAt String
    Last update timestamp.
    createdAt string
    Creation timestamp.
    id string
    The provider-assigned unique ID for this managed resource.
    tenantId string
    Tenant ID from provider configuration.
    updatedAt string
    Last update timestamp.
    created_at str
    Creation timestamp.
    id str
    The provider-assigned unique ID for this managed resource.
    tenant_id str
    Tenant ID from provider configuration.
    updated_at str
    Last update timestamp.
    createdAt String
    Creation timestamp.
    id String
    The provider-assigned unique ID for this managed resource.
    tenantId String
    Tenant ID from provider configuration.
    updatedAt String
    Last update timestamp.

    Look up Existing Vendor Resource

    Get an existing Vendor 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?: VendorState, opts?: CustomResourceOptions): Vendor
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            approved: Optional[bool] = None,
            created_at: Optional[str] = None,
            display_name: Optional[str] = None,
            host_patterns: Optional[Sequence[str]] = None,
            last_seen_at: Optional[str] = None,
            notes: Optional[str] = None,
            source: Optional[str] = None,
            tenant_id: Optional[str] = None,
            updated_at: Optional[str] = None,
            vendor_id: Optional[str] = None) -> Vendor
    func GetVendor(ctx *Context, name string, id IDInput, state *VendorState, opts ...ResourceOption) (*Vendor, error)
    public static Vendor Get(string name, Input<string> id, VendorState? state, CustomResourceOptions? opts = null)
    public static Vendor get(String name, Output<String> id, VendorState state, CustomResourceOptions options)
    resources:  _:    type: thoth:mcp:Vendor    get:      id: ${id}
    import {
      to = thoth_mcp_vendor.example
      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:
    Approved bool
    Whether this vendor is approved for pass-through MCP host access.
    CreatedAt string
    Creation timestamp.
    DisplayName string
    Human-friendly vendor display name.
    HostPatterns List<string>
    Allowed host patterns for this vendor (for example api.openai.com).
    LastSeenAt string
    Last observed timestamp (RFC3339) for this vendor in runtime traffic.
    Notes string
    Optional reviewer notes for this vendor entry.
    Source string
    Vendor entry source (for example manual, discovered).
    TenantId string
    Tenant ID from provider configuration.
    UpdatedAt string
    Last update timestamp.
    VendorId string
    Stable vendor identifier.
    Approved bool
    Whether this vendor is approved for pass-through MCP host access.
    CreatedAt string
    Creation timestamp.
    DisplayName string
    Human-friendly vendor display name.
    HostPatterns []string
    Allowed host patterns for this vendor (for example api.openai.com).
    LastSeenAt string
    Last observed timestamp (RFC3339) for this vendor in runtime traffic.
    Notes string
    Optional reviewer notes for this vendor entry.
    Source string
    Vendor entry source (for example manual, discovered).
    TenantId string
    Tenant ID from provider configuration.
    UpdatedAt string
    Last update timestamp.
    VendorId string
    Stable vendor identifier.
    approved bool
    Whether this vendor is approved for pass-through MCP host access.
    created_at string
    Creation timestamp.
    display_name string
    Human-friendly vendor display name.
    host_patterns list(string)
    Allowed host patterns for this vendor (for example api.openai.com).
    last_seen_at string
    Last observed timestamp (RFC3339) for this vendor in runtime traffic.
    notes string
    Optional reviewer notes for this vendor entry.
    source string
    Vendor entry source (for example manual, discovered).
    tenant_id string
    Tenant ID from provider configuration.
    updated_at string
    Last update timestamp.
    vendor_id string
    Stable vendor identifier.
    approved Boolean
    Whether this vendor is approved for pass-through MCP host access.
    createdAt String
    Creation timestamp.
    displayName String
    Human-friendly vendor display name.
    hostPatterns List<String>
    Allowed host patterns for this vendor (for example api.openai.com).
    lastSeenAt String
    Last observed timestamp (RFC3339) for this vendor in runtime traffic.
    notes String
    Optional reviewer notes for this vendor entry.
    source String
    Vendor entry source (for example manual, discovered).
    tenantId String
    Tenant ID from provider configuration.
    updatedAt String
    Last update timestamp.
    vendorId String
    Stable vendor identifier.
    approved boolean
    Whether this vendor is approved for pass-through MCP host access.
    createdAt string
    Creation timestamp.
    displayName string
    Human-friendly vendor display name.
    hostPatterns string[]
    Allowed host patterns for this vendor (for example api.openai.com).
    lastSeenAt string
    Last observed timestamp (RFC3339) for this vendor in runtime traffic.
    notes string
    Optional reviewer notes for this vendor entry.
    source string
    Vendor entry source (for example manual, discovered).
    tenantId string
    Tenant ID from provider configuration.
    updatedAt string
    Last update timestamp.
    vendorId string
    Stable vendor identifier.
    approved bool
    Whether this vendor is approved for pass-through MCP host access.
    created_at str
    Creation timestamp.
    display_name str
    Human-friendly vendor display name.
    host_patterns Sequence[str]
    Allowed host patterns for this vendor (for example api.openai.com).
    last_seen_at str
    Last observed timestamp (RFC3339) for this vendor in runtime traffic.
    notes str
    Optional reviewer notes for this vendor entry.
    source str
    Vendor entry source (for example manual, discovered).
    tenant_id str
    Tenant ID from provider configuration.
    updated_at str
    Last update timestamp.
    vendor_id str
    Stable vendor identifier.
    approved Boolean
    Whether this vendor is approved for pass-through MCP host access.
    createdAt String
    Creation timestamp.
    displayName String
    Human-friendly vendor display name.
    hostPatterns List<String>
    Allowed host patterns for this vendor (for example api.openai.com).
    lastSeenAt String
    Last observed timestamp (RFC3339) for this vendor in runtime traffic.
    notes String
    Optional reviewer notes for this vendor entry.
    source String
    Vendor entry source (for example manual, discovered).
    tenantId String
    Tenant ID from provider configuration.
    updatedAt String
    Last update timestamp.
    vendorId String
    Stable vendor identifier.

    Package Details

    Repository
    thoth atensecurity/pulumi-thoth
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the thoth Terraform Provider.
    thoth logo
    Viewing docs for Thoth v0.1.15
    published on Thursday, Jul 23, 2026 by Aten Security

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial