Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";
const exampleZeroTrustAccessAiControlsMcpPortal = new cloudflare.ZeroTrustAccessAiControlsMcpPortal("example_zero_trust_access_ai_controls_mcp_portal", {
accountId: "a86a8f5c339544d7bdc89926de14fb8c",
zeroTrustAccessAiControlsMcpPortalId: "my-mcp-portal",
hostname: "exmaple.com",
name: "My MCP Portal",
description: "This is my custom MCP Portal",
servers: [{
serverId: "my-mcp-server",
defaultDisabled: true,
onBehalf: true,
updatedPrompts: [{
name: "name",
description: "description",
enabled: true,
}],
updatedTools: [{
name: "name",
description: "description",
enabled: true,
}],
}],
});
import pulumi
import pulumi_cloudflare as cloudflare
example_zero_trust_access_ai_controls_mcp_portal = cloudflare.ZeroTrustAccessAiControlsMcpPortal("example_zero_trust_access_ai_controls_mcp_portal",
account_id="a86a8f5c339544d7bdc89926de14fb8c",
zero_trust_access_ai_controls_mcp_portal_id="my-mcp-portal",
hostname="exmaple.com",
name="My MCP Portal",
description="This is my custom MCP Portal",
servers=[{
"server_id": "my-mcp-server",
"default_disabled": True,
"on_behalf": True,
"updated_prompts": [{
"name": "name",
"description": "description",
"enabled": True,
}],
"updated_tools": [{
"name": "name",
"description": "description",
"enabled": True,
}],
}])
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.NewZeroTrustAccessAiControlsMcpPortal(ctx, "example_zero_trust_access_ai_controls_mcp_portal", &cloudflare.ZeroTrustAccessAiControlsMcpPortalArgs{
AccountId: pulumi.String("a86a8f5c339544d7bdc89926de14fb8c"),
ZeroTrustAccessAiControlsMcpPortalId: pulumi.String("my-mcp-portal"),
Hostname: pulumi.String("exmaple.com"),
Name: pulumi.String("My MCP Portal"),
Description: pulumi.String("This is my custom MCP Portal"),
Servers: cloudflare.ZeroTrustAccessAiControlsMcpPortalServerArray{
&cloudflare.ZeroTrustAccessAiControlsMcpPortalServerArgs{
ServerId: pulumi.String("my-mcp-server"),
DefaultDisabled: pulumi.Bool(true),
OnBehalf: pulumi.Bool(true),
UpdatedPrompts: cloudflare.ZeroTrustAccessAiControlsMcpPortalServerUpdatedPromptArray{
&cloudflare.ZeroTrustAccessAiControlsMcpPortalServerUpdatedPromptArgs{
Name: pulumi.String("name"),
Description: pulumi.String("description"),
Enabled: pulumi.Bool(true),
},
},
UpdatedTools: cloudflare.ZeroTrustAccessAiControlsMcpPortalServerUpdatedToolArray{
&cloudflare.ZeroTrustAccessAiControlsMcpPortalServerUpdatedToolArgs{
Name: pulumi.String("name"),
Description: pulumi.String("description"),
Enabled: pulumi.Bool(true),
},
},
},
},
})
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 exampleZeroTrustAccessAiControlsMcpPortal = new Cloudflare.ZeroTrustAccessAiControlsMcpPortal("example_zero_trust_access_ai_controls_mcp_portal", new()
{
AccountId = "a86a8f5c339544d7bdc89926de14fb8c",
ZeroTrustAccessAiControlsMcpPortalId = "my-mcp-portal",
Hostname = "exmaple.com",
Name = "My MCP Portal",
Description = "This is my custom MCP Portal",
Servers = new[]
{
new Cloudflare.Inputs.ZeroTrustAccessAiControlsMcpPortalServerArgs
{
ServerId = "my-mcp-server",
DefaultDisabled = true,
OnBehalf = true,
UpdatedPrompts = new[]
{
new Cloudflare.Inputs.ZeroTrustAccessAiControlsMcpPortalServerUpdatedPromptArgs
{
Name = "name",
Description = "description",
Enabled = true,
},
},
UpdatedTools = new[]
{
new Cloudflare.Inputs.ZeroTrustAccessAiControlsMcpPortalServerUpdatedToolArgs
{
Name = "name",
Description = "description",
Enabled = true,
},
},
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cloudflare.ZeroTrustAccessAiControlsMcpPortal;
import com.pulumi.cloudflare.ZeroTrustAccessAiControlsMcpPortalArgs;
import com.pulumi.cloudflare.inputs.ZeroTrustAccessAiControlsMcpPortalServerArgs;
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 exampleZeroTrustAccessAiControlsMcpPortal = new ZeroTrustAccessAiControlsMcpPortal("exampleZeroTrustAccessAiControlsMcpPortal", ZeroTrustAccessAiControlsMcpPortalArgs.builder()
.accountId("a86a8f5c339544d7bdc89926de14fb8c")
.zeroTrustAccessAiControlsMcpPortalId("my-mcp-portal")
.hostname("exmaple.com")
.name("My MCP Portal")
.description("This is my custom MCP Portal")
.servers(ZeroTrustAccessAiControlsMcpPortalServerArgs.builder()
.serverId("my-mcp-server")
.defaultDisabled(true)
.onBehalf(true)
.updatedPrompts(ZeroTrustAccessAiControlsMcpPortalServerUpdatedPromptArgs.builder()
.name("name")
.description("description")
.enabled(true)
.build())
.updatedTools(ZeroTrustAccessAiControlsMcpPortalServerUpdatedToolArgs.builder()
.name("name")
.description("description")
.enabled(true)
.build())
.build())
.build());
}
}
resources:
exampleZeroTrustAccessAiControlsMcpPortal:
type: cloudflare:ZeroTrustAccessAiControlsMcpPortal
name: example_zero_trust_access_ai_controls_mcp_portal
properties:
accountId: a86a8f5c339544d7bdc89926de14fb8c
zeroTrustAccessAiControlsMcpPortalId: my-mcp-portal
hostname: exmaple.com
name: My MCP Portal
description: This is my custom MCP Portal
servers:
- serverId: my-mcp-server
defaultDisabled: true
onBehalf: true
updatedPrompts:
- name: name
description: description
enabled: true
updatedTools:
- name: name
description: description
enabled: true
Create ZeroTrustAccessAiControlsMcpPortal Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ZeroTrustAccessAiControlsMcpPortal(name: string, args: ZeroTrustAccessAiControlsMcpPortalArgs, opts?: CustomResourceOptions);@overload
def ZeroTrustAccessAiControlsMcpPortal(resource_name: str,
args: ZeroTrustAccessAiControlsMcpPortalArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ZeroTrustAccessAiControlsMcpPortal(resource_name: str,
opts: Optional[ResourceOptions] = None,
account_id: Optional[str] = None,
hostname: Optional[str] = None,
name: Optional[str] = None,
zero_trust_access_ai_controls_mcp_portal_id: Optional[str] = None,
description: Optional[str] = None,
servers: Optional[Sequence[ZeroTrustAccessAiControlsMcpPortalServerArgs]] = None)func NewZeroTrustAccessAiControlsMcpPortal(ctx *Context, name string, args ZeroTrustAccessAiControlsMcpPortalArgs, opts ...ResourceOption) (*ZeroTrustAccessAiControlsMcpPortal, error)public ZeroTrustAccessAiControlsMcpPortal(string name, ZeroTrustAccessAiControlsMcpPortalArgs args, CustomResourceOptions? opts = null)
public ZeroTrustAccessAiControlsMcpPortal(String name, ZeroTrustAccessAiControlsMcpPortalArgs args)
public ZeroTrustAccessAiControlsMcpPortal(String name, ZeroTrustAccessAiControlsMcpPortalArgs args, CustomResourceOptions options)
type: cloudflare:ZeroTrustAccessAiControlsMcpPortal
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 ZeroTrustAccessAiControlsMcpPortalArgs
- 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 ZeroTrustAccessAiControlsMcpPortalArgs
- 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 ZeroTrustAccessAiControlsMcpPortalArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ZeroTrustAccessAiControlsMcpPortalArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ZeroTrustAccessAiControlsMcpPortalArgs
- 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 zeroTrustAccessAiControlsMcpPortalResource = new Cloudflare.ZeroTrustAccessAiControlsMcpPortal("zeroTrustAccessAiControlsMcpPortalResource", new()
{
AccountId = "string",
Hostname = "string",
Name = "string",
ZeroTrustAccessAiControlsMcpPortalId = "string",
Description = "string",
Servers = new[]
{
new Cloudflare.Inputs.ZeroTrustAccessAiControlsMcpPortalServerArgs
{
ServerId = "string",
DefaultDisabled = false,
OnBehalf = false,
UpdatedPrompts = new[]
{
new Cloudflare.Inputs.ZeroTrustAccessAiControlsMcpPortalServerUpdatedPromptArgs
{
Name = "string",
Description = "string",
Enabled = false,
},
},
UpdatedTools = new[]
{
new Cloudflare.Inputs.ZeroTrustAccessAiControlsMcpPortalServerUpdatedToolArgs
{
Name = "string",
Description = "string",
Enabled = false,
},
},
},
},
});
example, err := cloudflare.NewZeroTrustAccessAiControlsMcpPortal(ctx, "zeroTrustAccessAiControlsMcpPortalResource", &cloudflare.ZeroTrustAccessAiControlsMcpPortalArgs{
AccountId: pulumi.String("string"),
Hostname: pulumi.String("string"),
Name: pulumi.String("string"),
ZeroTrustAccessAiControlsMcpPortalId: pulumi.String("string"),
Description: pulumi.String("string"),
Servers: cloudflare.ZeroTrustAccessAiControlsMcpPortalServerArray{
&cloudflare.ZeroTrustAccessAiControlsMcpPortalServerArgs{
ServerId: pulumi.String("string"),
DefaultDisabled: pulumi.Bool(false),
OnBehalf: pulumi.Bool(false),
UpdatedPrompts: cloudflare.ZeroTrustAccessAiControlsMcpPortalServerUpdatedPromptArray{
&cloudflare.ZeroTrustAccessAiControlsMcpPortalServerUpdatedPromptArgs{
Name: pulumi.String("string"),
Description: pulumi.String("string"),
Enabled: pulumi.Bool(false),
},
},
UpdatedTools: cloudflare.ZeroTrustAccessAiControlsMcpPortalServerUpdatedToolArray{
&cloudflare.ZeroTrustAccessAiControlsMcpPortalServerUpdatedToolArgs{
Name: pulumi.String("string"),
Description: pulumi.String("string"),
Enabled: pulumi.Bool(false),
},
},
},
},
})
var zeroTrustAccessAiControlsMcpPortalResource = new ZeroTrustAccessAiControlsMcpPortal("zeroTrustAccessAiControlsMcpPortalResource", ZeroTrustAccessAiControlsMcpPortalArgs.builder()
.accountId("string")
.hostname("string")
.name("string")
.zeroTrustAccessAiControlsMcpPortalId("string")
.description("string")
.servers(ZeroTrustAccessAiControlsMcpPortalServerArgs.builder()
.serverId("string")
.defaultDisabled(false)
.onBehalf(false)
.updatedPrompts(ZeroTrustAccessAiControlsMcpPortalServerUpdatedPromptArgs.builder()
.name("string")
.description("string")
.enabled(false)
.build())
.updatedTools(ZeroTrustAccessAiControlsMcpPortalServerUpdatedToolArgs.builder()
.name("string")
.description("string")
.enabled(false)
.build())
.build())
.build());
zero_trust_access_ai_controls_mcp_portal_resource = cloudflare.ZeroTrustAccessAiControlsMcpPortal("zeroTrustAccessAiControlsMcpPortalResource",
account_id="string",
hostname="string",
name="string",
zero_trust_access_ai_controls_mcp_portal_id="string",
description="string",
servers=[{
"server_id": "string",
"default_disabled": False,
"on_behalf": False,
"updated_prompts": [{
"name": "string",
"description": "string",
"enabled": False,
}],
"updated_tools": [{
"name": "string",
"description": "string",
"enabled": False,
}],
}])
const zeroTrustAccessAiControlsMcpPortalResource = new cloudflare.ZeroTrustAccessAiControlsMcpPortal("zeroTrustAccessAiControlsMcpPortalResource", {
accountId: "string",
hostname: "string",
name: "string",
zeroTrustAccessAiControlsMcpPortalId: "string",
description: "string",
servers: [{
serverId: "string",
defaultDisabled: false,
onBehalf: false,
updatedPrompts: [{
name: "string",
description: "string",
enabled: false,
}],
updatedTools: [{
name: "string",
description: "string",
enabled: false,
}],
}],
});
type: cloudflare:ZeroTrustAccessAiControlsMcpPortal
properties:
accountId: string
description: string
hostname: string
name: string
servers:
- defaultDisabled: false
onBehalf: false
serverId: string
updatedPrompts:
- description: string
enabled: false
name: string
updatedTools:
- description: string
enabled: false
name: string
zeroTrustAccessAiControlsMcpPortalId: string
ZeroTrustAccessAiControlsMcpPortal 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 ZeroTrustAccessAiControlsMcpPortal resource accepts the following input properties:
- Account
Id string - Hostname string
- Name string
- Zero
Trust stringAccess Ai Controls Mcp Portal Id - portal id
- Description string
- Servers
List<Zero
Trust Access Ai Controls Mcp Portal Server>
- Account
Id string - Hostname string
- Name string
- Zero
Trust stringAccess Ai Controls Mcp Portal Id - portal id
- Description string
- Servers
[]Zero
Trust Access Ai Controls Mcp Portal Server Args
- account
Id String - hostname String
- name String
- zero
Trust StringAccess Ai Controls Mcp Portal Id - portal id
- description String
- servers
List<Zero
Trust Access Ai Controls Mcp Portal Server>
- account
Id string - hostname string
- name string
- zero
Trust stringAccess Ai Controls Mcp Portal Id - portal id
- description string
- servers
Zero
Trust Access Ai Controls Mcp Portal Server[]
- account
Id String - hostname String
- name String
- zero
Trust StringAccess Ai Controls Mcp Portal Id - portal id
- description String
- servers List<Property Map>
Outputs
All input properties are implicitly available as output properties. Additionally, the ZeroTrustAccessAiControlsMcpPortal resource produces the following output properties:
- Created
At string - Created
By string - Id string
- The provider-assigned unique ID for this managed resource.
- Modified
At string - Modified
By string
- Created
At string - Created
By string - Id string
- The provider-assigned unique ID for this managed resource.
- Modified
At string - Modified
By string
- created
At String - created
By String - id String
- The provider-assigned unique ID for this managed resource.
- modified
At String - modified
By String
- created
At string - created
By string - id string
- The provider-assigned unique ID for this managed resource.
- modified
At string - modified
By string
- created_
at str - created_
by str - id str
- The provider-assigned unique ID for this managed resource.
- modified_
at str - modified_
by str
- created
At String - created
By String - id String
- The provider-assigned unique ID for this managed resource.
- modified
At String - modified
By String
Look up Existing ZeroTrustAccessAiControlsMcpPortal Resource
Get an existing ZeroTrustAccessAiControlsMcpPortal 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?: ZeroTrustAccessAiControlsMcpPortalState, opts?: CustomResourceOptions): ZeroTrustAccessAiControlsMcpPortal@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
account_id: Optional[str] = None,
created_at: Optional[str] = None,
created_by: Optional[str] = None,
description: Optional[str] = None,
hostname: Optional[str] = None,
modified_at: Optional[str] = None,
modified_by: Optional[str] = None,
name: Optional[str] = None,
servers: Optional[Sequence[ZeroTrustAccessAiControlsMcpPortalServerArgs]] = None,
zero_trust_access_ai_controls_mcp_portal_id: Optional[str] = None) -> ZeroTrustAccessAiControlsMcpPortalfunc GetZeroTrustAccessAiControlsMcpPortal(ctx *Context, name string, id IDInput, state *ZeroTrustAccessAiControlsMcpPortalState, opts ...ResourceOption) (*ZeroTrustAccessAiControlsMcpPortal, error)public static ZeroTrustAccessAiControlsMcpPortal Get(string name, Input<string> id, ZeroTrustAccessAiControlsMcpPortalState? state, CustomResourceOptions? opts = null)public static ZeroTrustAccessAiControlsMcpPortal get(String name, Output<String> id, ZeroTrustAccessAiControlsMcpPortalState state, CustomResourceOptions options)resources: _: type: cloudflare:ZeroTrustAccessAiControlsMcpPortal 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.
- Account
Id string - Created
At string - Created
By string - Description string
- Hostname string
- Modified
At string - Modified
By string - Name string
- Servers
List<Zero
Trust Access Ai Controls Mcp Portal Server> - Zero
Trust stringAccess Ai Controls Mcp Portal Id - portal id
- Account
Id string - Created
At string - Created
By string - Description string
- Hostname string
- Modified
At string - Modified
By string - Name string
- Servers
[]Zero
Trust Access Ai Controls Mcp Portal Server Args - Zero
Trust stringAccess Ai Controls Mcp Portal Id - portal id
- account
Id String - created
At String - created
By String - description String
- hostname String
- modified
At String - modified
By String - name String
- servers
List<Zero
Trust Access Ai Controls Mcp Portal Server> - zero
Trust StringAccess Ai Controls Mcp Portal Id - portal id
- account
Id string - created
At string - created
By string - description string
- hostname string
- modified
At string - modified
By string - name string
- servers
Zero
Trust Access Ai Controls Mcp Portal Server[] - zero
Trust stringAccess Ai Controls Mcp Portal Id - portal id
- account_
id str - created_
at str - created_
by str - description str
- hostname str
- modified_
at str - modified_
by str - name str
- servers
Sequence[Zero
Trust Access Ai Controls Mcp Portal Server Args] - zero_
trust_ straccess_ ai_ controls_ mcp_ portal_ id - portal id
- account
Id String - created
At String - created
By String - description String
- hostname String
- modified
At String - modified
By String - name String
- servers List<Property Map>
- zero
Trust StringAccess Ai Controls Mcp Portal Id - portal id
Supporting Types
ZeroTrustAccessAiControlsMcpPortalServer, ZeroTrustAccessAiControlsMcpPortalServerArgs
- server
Id String - server id
- default
Disabled Boolean - on
Behalf Boolean - updated
Prompts List<Property Map> - updated
Tools List<Property Map>
ZeroTrustAccessAiControlsMcpPortalServerUpdatedPrompt, ZeroTrustAccessAiControlsMcpPortalServerUpdatedPromptArgs
- Name string
- Description string
- Enabled bool
- Name string
- Description string
- Enabled bool
- name String
- description String
- enabled Boolean
- name string
- description string
- enabled boolean
- name str
- description str
- enabled bool
- name String
- description String
- enabled Boolean
ZeroTrustAccessAiControlsMcpPortalServerUpdatedTool, ZeroTrustAccessAiControlsMcpPortalServerUpdatedToolArgs
- Name string
- Description string
- Enabled bool
- Name string
- Description string
- Enabled bool
- name String
- description String
- enabled Boolean
- name string
- description string
- enabled boolean
- name str
- description str
- enabled bool
- name String
- description String
- enabled Boolean
Import
$ pulumi import cloudflare:index/zeroTrustAccessAiControlsMcpPortal:ZeroTrustAccessAiControlsMcpPortal 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
cloudflareTerraform Provider.
