1. Packages
  2. Cloudflare Provider
  3. API Docs
  4. ZeroTrustAccessAiControlsMcpServer
Cloudflare v6.12.0 published on Wednesday, Dec 24, 2025 by Pulumi
cloudflare logo
Cloudflare v6.12.0 published on Wednesday, Dec 24, 2025 by Pulumi

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as cloudflare from "@pulumi/cloudflare";
    
    const exampleZeroTrustAccessAiControlsMcpServer = new cloudflare.ZeroTrustAccessAiControlsMcpServer("example_zero_trust_access_ai_controls_mcp_server", {
        accountId: "a86a8f5c339544d7bdc89926de14fb8c",
        zeroTrustAccessAiControlsMcpServerId: "my-mcp-server",
        authType: "unauthenticated",
        hostname: "https://exmaple.com/mcp",
        name: "My MCP Server",
        authCredentials: "auth_credentials",
        description: "This is one remote mcp server",
    });
    
    import pulumi
    import pulumi_cloudflare as cloudflare
    
    example_zero_trust_access_ai_controls_mcp_server = cloudflare.ZeroTrustAccessAiControlsMcpServer("example_zero_trust_access_ai_controls_mcp_server",
        account_id="a86a8f5c339544d7bdc89926de14fb8c",
        zero_trust_access_ai_controls_mcp_server_id="my-mcp-server",
        auth_type="unauthenticated",
        hostname="https://exmaple.com/mcp",
        name="My MCP Server",
        auth_credentials="auth_credentials",
        description="This is one remote mcp server")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-cloudflare/sdk/v6/go/cloudflare"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := cloudflare.NewZeroTrustAccessAiControlsMcpServer(ctx, "example_zero_trust_access_ai_controls_mcp_server", &cloudflare.ZeroTrustAccessAiControlsMcpServerArgs{
    			AccountId:                            pulumi.String("a86a8f5c339544d7bdc89926de14fb8c"),
    			ZeroTrustAccessAiControlsMcpServerId: pulumi.String("my-mcp-server"),
    			AuthType:                             pulumi.String("unauthenticated"),
    			Hostname:                             pulumi.String("https://exmaple.com/mcp"),
    			Name:                                 pulumi.String("My MCP Server"),
    			AuthCredentials:                      pulumi.String("auth_credentials"),
    			Description:                          pulumi.String("This is one remote mcp server"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Cloudflare = Pulumi.Cloudflare;
    
    return await Deployment.RunAsync(() => 
    {
        var exampleZeroTrustAccessAiControlsMcpServer = new Cloudflare.ZeroTrustAccessAiControlsMcpServer("example_zero_trust_access_ai_controls_mcp_server", new()
        {
            AccountId = "a86a8f5c339544d7bdc89926de14fb8c",
            ZeroTrustAccessAiControlsMcpServerId = "my-mcp-server",
            AuthType = "unauthenticated",
            Hostname = "https://exmaple.com/mcp",
            Name = "My MCP Server",
            AuthCredentials = "auth_credentials",
            Description = "This is one remote mcp server",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.cloudflare.ZeroTrustAccessAiControlsMcpServer;
    import com.pulumi.cloudflare.ZeroTrustAccessAiControlsMcpServerArgs;
    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 exampleZeroTrustAccessAiControlsMcpServer = new ZeroTrustAccessAiControlsMcpServer("exampleZeroTrustAccessAiControlsMcpServer", ZeroTrustAccessAiControlsMcpServerArgs.builder()
                .accountId("a86a8f5c339544d7bdc89926de14fb8c")
                .zeroTrustAccessAiControlsMcpServerId("my-mcp-server")
                .authType("unauthenticated")
                .hostname("https://exmaple.com/mcp")
                .name("My MCP Server")
                .authCredentials("auth_credentials")
                .description("This is one remote mcp server")
                .build());
    
        }
    }
    
    resources:
      exampleZeroTrustAccessAiControlsMcpServer:
        type: cloudflare:ZeroTrustAccessAiControlsMcpServer
        name: example_zero_trust_access_ai_controls_mcp_server
        properties:
          accountId: a86a8f5c339544d7bdc89926de14fb8c
          zeroTrustAccessAiControlsMcpServerId: my-mcp-server
          authType: unauthenticated
          hostname: https://exmaple.com/mcp
          name: My MCP Server
          authCredentials: auth_credentials
          description: This is one remote mcp server
    

    Create ZeroTrustAccessAiControlsMcpServer Resource

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

    Constructor syntax

    new ZeroTrustAccessAiControlsMcpServer(name: string, args: ZeroTrustAccessAiControlsMcpServerArgs, opts?: CustomResourceOptions);
    @overload
    def ZeroTrustAccessAiControlsMcpServer(resource_name: str,
                                           args: ZeroTrustAccessAiControlsMcpServerArgs,
                                           opts: Optional[ResourceOptions] = None)
    
    @overload
    def ZeroTrustAccessAiControlsMcpServer(resource_name: str,
                                           opts: Optional[ResourceOptions] = None,
                                           account_id: Optional[str] = None,
                                           auth_type: Optional[str] = None,
                                           hostname: Optional[str] = None,
                                           name: Optional[str] = None,
                                           zero_trust_access_ai_controls_mcp_server_id: Optional[str] = None,
                                           auth_credentials: Optional[str] = None,
                                           description: Optional[str] = None)
    func NewZeroTrustAccessAiControlsMcpServer(ctx *Context, name string, args ZeroTrustAccessAiControlsMcpServerArgs, opts ...ResourceOption) (*ZeroTrustAccessAiControlsMcpServer, error)
    public ZeroTrustAccessAiControlsMcpServer(string name, ZeroTrustAccessAiControlsMcpServerArgs args, CustomResourceOptions? opts = null)
    public ZeroTrustAccessAiControlsMcpServer(String name, ZeroTrustAccessAiControlsMcpServerArgs args)
    public ZeroTrustAccessAiControlsMcpServer(String name, ZeroTrustAccessAiControlsMcpServerArgs args, CustomResourceOptions options)
    
    type: cloudflare:ZeroTrustAccessAiControlsMcpServer
    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 ZeroTrustAccessAiControlsMcpServerArgs
    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 ZeroTrustAccessAiControlsMcpServerArgs
    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 ZeroTrustAccessAiControlsMcpServerArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ZeroTrustAccessAiControlsMcpServerArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ZeroTrustAccessAiControlsMcpServerArgs
    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 zeroTrustAccessAiControlsMcpServerResource = new Cloudflare.ZeroTrustAccessAiControlsMcpServer("zeroTrustAccessAiControlsMcpServerResource", new()
    {
        AccountId = "string",
        AuthType = "string",
        Hostname = "string",
        Name = "string",
        ZeroTrustAccessAiControlsMcpServerId = "string",
        AuthCredentials = "string",
        Description = "string",
    });
    
    example, err := cloudflare.NewZeroTrustAccessAiControlsMcpServer(ctx, "zeroTrustAccessAiControlsMcpServerResource", &cloudflare.ZeroTrustAccessAiControlsMcpServerArgs{
    	AccountId:                            pulumi.String("string"),
    	AuthType:                             pulumi.String("string"),
    	Hostname:                             pulumi.String("string"),
    	Name:                                 pulumi.String("string"),
    	ZeroTrustAccessAiControlsMcpServerId: pulumi.String("string"),
    	AuthCredentials:                      pulumi.String("string"),
    	Description:                          pulumi.String("string"),
    })
    
    var zeroTrustAccessAiControlsMcpServerResource = new ZeroTrustAccessAiControlsMcpServer("zeroTrustAccessAiControlsMcpServerResource", ZeroTrustAccessAiControlsMcpServerArgs.builder()
        .accountId("string")
        .authType("string")
        .hostname("string")
        .name("string")
        .zeroTrustAccessAiControlsMcpServerId("string")
        .authCredentials("string")
        .description("string")
        .build());
    
    zero_trust_access_ai_controls_mcp_server_resource = cloudflare.ZeroTrustAccessAiControlsMcpServer("zeroTrustAccessAiControlsMcpServerResource",
        account_id="string",
        auth_type="string",
        hostname="string",
        name="string",
        zero_trust_access_ai_controls_mcp_server_id="string",
        auth_credentials="string",
        description="string")
    
    const zeroTrustAccessAiControlsMcpServerResource = new cloudflare.ZeroTrustAccessAiControlsMcpServer("zeroTrustAccessAiControlsMcpServerResource", {
        accountId: "string",
        authType: "string",
        hostname: "string",
        name: "string",
        zeroTrustAccessAiControlsMcpServerId: "string",
        authCredentials: "string",
        description: "string",
    });
    
    type: cloudflare:ZeroTrustAccessAiControlsMcpServer
    properties:
        accountId: string
        authCredentials: string
        authType: string
        description: string
        hostname: string
        name: string
        zeroTrustAccessAiControlsMcpServerId: string
    

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

    AccountId string
    AuthType string
    Available values: "oauth", "bearer", "unauthenticated".
    Hostname string
    Name string
    ZeroTrustAccessAiControlsMcpServerId string
    server id
    AuthCredentials string
    Description string
    AccountId string
    AuthType string
    Available values: "oauth", "bearer", "unauthenticated".
    Hostname string
    Name string
    ZeroTrustAccessAiControlsMcpServerId string
    server id
    AuthCredentials string
    Description string
    accountId String
    authType String
    Available values: "oauth", "bearer", "unauthenticated".
    hostname String
    name String
    zeroTrustAccessAiControlsMcpServerId String
    server id
    authCredentials String
    description String
    accountId string
    authType string
    Available values: "oauth", "bearer", "unauthenticated".
    hostname string
    name string
    zeroTrustAccessAiControlsMcpServerId string
    server id
    authCredentials string
    description string
    account_id str
    auth_type str
    Available values: "oauth", "bearer", "unauthenticated".
    hostname str
    name str
    zero_trust_access_ai_controls_mcp_server_id str
    server id
    auth_credentials str
    description str
    accountId String
    authType String
    Available values: "oauth", "bearer", "unauthenticated".
    hostname String
    name String
    zeroTrustAccessAiControlsMcpServerId String
    server id
    authCredentials String
    description String

    Outputs

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

    CreatedAt string
    CreatedBy string
    Error string
    Id string
    The provider-assigned unique ID for this managed resource.
    LastSynced string
    ModifiedAt string
    ModifiedBy string
    Prompts List<ImmutableDictionary<string, string>>
    Status string
    Tools List<ImmutableDictionary<string, string>>
    CreatedAt string
    CreatedBy string
    Error string
    Id string
    The provider-assigned unique ID for this managed resource.
    LastSynced string
    ModifiedAt string
    ModifiedBy string
    Prompts []map[string]string
    Status string
    Tools []map[string]string
    createdAt String
    createdBy String
    error String
    id String
    The provider-assigned unique ID for this managed resource.
    lastSynced String
    modifiedAt String
    modifiedBy String
    prompts List<Map<String,String>>
    status String
    tools List<Map<String,String>>
    createdAt string
    createdBy string
    error string
    id string
    The provider-assigned unique ID for this managed resource.
    lastSynced string
    modifiedAt string
    modifiedBy string
    prompts {[key: string]: string}[]
    status string
    tools {[key: string]: string}[]
    created_at str
    created_by str
    error str
    id str
    The provider-assigned unique ID for this managed resource.
    last_synced str
    modified_at str
    modified_by str
    prompts Sequence[Mapping[str, str]]
    status str
    tools Sequence[Mapping[str, str]]
    createdAt String
    createdBy String
    error String
    id String
    The provider-assigned unique ID for this managed resource.
    lastSynced String
    modifiedAt String
    modifiedBy String
    prompts List<Map<String>>
    status String
    tools List<Map<String>>

    Look up Existing ZeroTrustAccessAiControlsMcpServer Resource

    Get an existing ZeroTrustAccessAiControlsMcpServer 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?: ZeroTrustAccessAiControlsMcpServerState, opts?: CustomResourceOptions): ZeroTrustAccessAiControlsMcpServer
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            account_id: Optional[str] = None,
            auth_credentials: Optional[str] = None,
            auth_type: Optional[str] = None,
            created_at: Optional[str] = None,
            created_by: Optional[str] = None,
            description: Optional[str] = None,
            error: Optional[str] = None,
            hostname: Optional[str] = None,
            last_synced: Optional[str] = None,
            modified_at: Optional[str] = None,
            modified_by: Optional[str] = None,
            name: Optional[str] = None,
            prompts: Optional[Sequence[Mapping[str, str]]] = None,
            status: Optional[str] = None,
            tools: Optional[Sequence[Mapping[str, str]]] = None,
            zero_trust_access_ai_controls_mcp_server_id: Optional[str] = None) -> ZeroTrustAccessAiControlsMcpServer
    func GetZeroTrustAccessAiControlsMcpServer(ctx *Context, name string, id IDInput, state *ZeroTrustAccessAiControlsMcpServerState, opts ...ResourceOption) (*ZeroTrustAccessAiControlsMcpServer, error)
    public static ZeroTrustAccessAiControlsMcpServer Get(string name, Input<string> id, ZeroTrustAccessAiControlsMcpServerState? state, CustomResourceOptions? opts = null)
    public static ZeroTrustAccessAiControlsMcpServer get(String name, Output<String> id, ZeroTrustAccessAiControlsMcpServerState state, CustomResourceOptions options)
    resources:  _:    type: cloudflare:ZeroTrustAccessAiControlsMcpServer    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:
    AccountId string
    AuthCredentials string
    AuthType string
    Available values: "oauth", "bearer", "unauthenticated".
    CreatedAt string
    CreatedBy string
    Description string
    Error string
    Hostname string
    LastSynced string
    ModifiedAt string
    ModifiedBy string
    Name string
    Prompts List<ImmutableDictionary<string, string>>
    Status string
    Tools List<ImmutableDictionary<string, string>>
    ZeroTrustAccessAiControlsMcpServerId string
    server id
    AccountId string
    AuthCredentials string
    AuthType string
    Available values: "oauth", "bearer", "unauthenticated".
    CreatedAt string
    CreatedBy string
    Description string
    Error string
    Hostname string
    LastSynced string
    ModifiedAt string
    ModifiedBy string
    Name string
    Prompts []map[string]string
    Status string
    Tools []map[string]string
    ZeroTrustAccessAiControlsMcpServerId string
    server id
    accountId String
    authCredentials String
    authType String
    Available values: "oauth", "bearer", "unauthenticated".
    createdAt String
    createdBy String
    description String
    error String
    hostname String
    lastSynced String
    modifiedAt String
    modifiedBy String
    name String
    prompts List<Map<String,String>>
    status String
    tools List<Map<String,String>>
    zeroTrustAccessAiControlsMcpServerId String
    server id
    accountId string
    authCredentials string
    authType string
    Available values: "oauth", "bearer", "unauthenticated".
    createdAt string
    createdBy string
    description string
    error string
    hostname string
    lastSynced string
    modifiedAt string
    modifiedBy string
    name string
    prompts {[key: string]: string}[]
    status string
    tools {[key: string]: string}[]
    zeroTrustAccessAiControlsMcpServerId string
    server id
    account_id str
    auth_credentials str
    auth_type str
    Available values: "oauth", "bearer", "unauthenticated".
    created_at str
    created_by str
    description str
    error str
    hostname str
    last_synced str
    modified_at str
    modified_by str
    name str
    prompts Sequence[Mapping[str, str]]
    status str
    tools Sequence[Mapping[str, str]]
    zero_trust_access_ai_controls_mcp_server_id str
    server id
    accountId String
    authCredentials String
    authType String
    Available values: "oauth", "bearer", "unauthenticated".
    createdAt String
    createdBy String
    description String
    error String
    hostname String
    lastSynced String
    modifiedAt String
    modifiedBy String
    name String
    prompts List<Map<String>>
    status String
    tools List<Map<String>>
    zeroTrustAccessAiControlsMcpServerId String
    server id

    Import

    $ pulumi import cloudflare:index/zeroTrustAccessAiControlsMcpServer:ZeroTrustAccessAiControlsMcpServer example '<account_id>/<id>'
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Cloudflare pulumi/pulumi-cloudflare
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the cloudflare Terraform Provider.
    cloudflare logo
    Cloudflare v6.12.0 published on Wednesday, Dec 24, 2025 by Pulumi
      Meet Neo: Your AI Platform Teammate