1. Registry
  2. Packages
  3. Cloudflare Provider
  4. API Docs
  5. getAiSearchNamespace
Viewing docs for Cloudflare v6.20.0
published on Tuesday, Aug 25, 2026 by Pulumi
cloudflare logo cloudflare logo
Viewing docs for Cloudflare v6.20.0
published on Tuesday, Aug 25, 2026 by Pulumi

    Using getAiSearchNamespace

    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 getAiSearchNamespace(args: GetAiSearchNamespaceArgs, opts?: InvokeOptions): Promise<GetAiSearchNamespaceResult>
    function getAiSearchNamespaceOutput(args: GetAiSearchNamespaceOutputArgs, opts?: InvokeOutputOptions): Output<GetAiSearchNamespaceResult>
    def get_ai_search_namespace(account_id: Optional[str] = None,
                                name: Optional[str] = None,
                                opts: Optional[InvokeOptions] = None) -> GetAiSearchNamespaceResult
    def get_ai_search_namespace_output(account_id: pulumi.Input[Optional[str]] = None,
                                name: pulumi.Input[Optional[str]] = None,
                                opts: Optional[InvokeOutputOptions] = None) -> Output[GetAiSearchNamespaceResult]
    func LookupAiSearchNamespace(ctx *Context, args *LookupAiSearchNamespaceArgs, opts ...InvokeOption) (*LookupAiSearchNamespaceResult, error)
    func LookupAiSearchNamespaceOutput(ctx *Context, args *LookupAiSearchNamespaceOutputArgs, opts ...InvokeOption) LookupAiSearchNamespaceResultOutput

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

    public static class GetAiSearchNamespace 
    {
        public static Task<GetAiSearchNamespaceResult> InvokeAsync(GetAiSearchNamespaceArgs args, InvokeOptions? opts = null)
        public static Output<GetAiSearchNamespaceResult> Invoke(GetAiSearchNamespaceInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetAiSearchNamespaceResult> Invoke(GetAiSearchNamespaceInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetAiSearchNamespaceResult> getAiSearchNamespace(GetAiSearchNamespaceArgs args, InvokeOptions options)
    public static Output<GetAiSearchNamespaceResult> getAiSearchNamespace(GetAiSearchNamespaceArgs args, InvokeOptions options)
    public static Output<GetAiSearchNamespaceResult> getAiSearchNamespace(GetAiSearchNamespaceArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: cloudflare:index/getAiSearchNamespace:getAiSearchNamespace
      arguments:
        # arguments dictionary
    data "cloudflare_get_ai_search_namespace" "name" {
        # arguments
    }

    The following arguments are supported:

    AccountId string
    Name string
    AccountId string
    Name string
    account_id string
    name string
    accountId String
    name String
    accountId string
    name string
    accountId String
    name String

    getAiSearchNamespace Result

    The following output properties are available:

    AccountId string
    CreatedAt string
    Description string
    Optional description for the namespace. Max 256 characters.
    Name string
    PublicEndpointId string
    PublicEndpointParams GetAiSearchNamespacePublicEndpointParams
    AccountId string
    CreatedAt string
    Description string
    Optional description for the namespace. Max 256 characters.
    Name string
    PublicEndpointId string
    PublicEndpointParams GetAiSearchNamespacePublicEndpointParams
    account_id string
    created_at string
    description string
    Optional description for the namespace. Max 256 characters.
    name string
    public_endpoint_id string
    public_endpoint_params object
    accountId String
    createdAt String
    description String
    Optional description for the namespace. Max 256 characters.
    name String
    publicEndpointId String
    publicEndpointParams GetAiSearchNamespacePublicEndpointParams
    accountId string
    createdAt string
    description string
    Optional description for the namespace. Max 256 characters.
    name string
    publicEndpointId string
    publicEndpointParams GetAiSearchNamespacePublicEndpointParams
    account_id str
    created_at str
    description str
    Optional description for the namespace. Max 256 characters.
    name str
    public_endpoint_id str
    public_endpoint_params GetAiSearchNamespacePublicEndpointParams
    accountId String
    createdAt String
    description String
    Optional description for the namespace. Max 256 characters.
    name String
    publicEndpointId String
    publicEndpointParams Property Map

    Supporting Types

    GetAiSearchNamespacePublicEndpointParams

    AuthorizedHosts List<string>
    ChatCompletionsEndpoint GetAiSearchNamespacePublicEndpointParamsChatCompletionsEndpoint
    CustomDomains List<string>
    Custom domain hostnames that alias this public endpoint. GET and create responses return the current set; on update (PUT) this field is only echoed back when supplied in the request body, otherwise it is null (omit it to leave domains unchanged).
    DefaultDomainEnabled bool
    When false, the instance is reachable only via a registered custom domain and the default \n\n.search.ai.cloudflare.com host returns 404. Requires at least one custom domain. Defaults to true. publicendpointparams is replaced wholesale on update, so resend defaultdomainenabled on every update to keep the default host off — omitting it resets to true.
    Enabled bool
    InstancesAlloweds List<string>
    Instance IDs exposed through the namespace public endpoint. Empty means nothing is searchable. Every ID must be an existing instance in this namespace, and the list cannot exceed the account's multi-instance search limit.
    Mcp GetAiSearchNamespacePublicEndpointParamsMcp
    RateLimit GetAiSearchNamespacePublicEndpointParamsRateLimit
    SearchEndpoint GetAiSearchNamespacePublicEndpointParamsSearchEndpoint
    AuthorizedHosts []string
    ChatCompletionsEndpoint GetAiSearchNamespacePublicEndpointParamsChatCompletionsEndpoint
    CustomDomains []string
    Custom domain hostnames that alias this public endpoint. GET and create responses return the current set; on update (PUT) this field is only echoed back when supplied in the request body, otherwise it is null (omit it to leave domains unchanged).
    DefaultDomainEnabled bool
    When false, the instance is reachable only via a registered custom domain and the default \n\n.search.ai.cloudflare.com host returns 404. Requires at least one custom domain. Defaults to true. publicendpointparams is replaced wholesale on update, so resend defaultdomainenabled on every update to keep the default host off — omitting it resets to true.
    Enabled bool
    InstancesAlloweds []string
    Instance IDs exposed through the namespace public endpoint. Empty means nothing is searchable. Every ID must be an existing instance in this namespace, and the list cannot exceed the account's multi-instance search limit.
    Mcp GetAiSearchNamespacePublicEndpointParamsMcp
    RateLimit GetAiSearchNamespacePublicEndpointParamsRateLimit
    SearchEndpoint GetAiSearchNamespacePublicEndpointParamsSearchEndpoint
    authorized_hosts list(string)
    chat_completions_endpoint object
    custom_domains list(string)
    Custom domain hostnames that alias this public endpoint. GET and create responses return the current set; on update (PUT) this field is only echoed back when supplied in the request body, otherwise it is null (omit it to leave domains unchanged).
    default_domain_enabled bool
    When false, the instance is reachable only via a registered custom domain and the default \n\n.search.ai.cloudflare.com host returns 404. Requires at least one custom domain. Defaults to true. publicendpointparams is replaced wholesale on update, so resend defaultdomainenabled on every update to keep the default host off — omitting it resets to true.
    enabled bool
    instances_alloweds list(string)
    Instance IDs exposed through the namespace public endpoint. Empty means nothing is searchable. Every ID must be an existing instance in this namespace, and the list cannot exceed the account's multi-instance search limit.
    mcp object
    rate_limit object
    search_endpoint object
    authorizedHosts List<String>
    chatCompletionsEndpoint GetAiSearchNamespacePublicEndpointParamsChatCompletionsEndpoint
    customDomains List<String>
    Custom domain hostnames that alias this public endpoint. GET and create responses return the current set; on update (PUT) this field is only echoed back when supplied in the request body, otherwise it is null (omit it to leave domains unchanged).
    defaultDomainEnabled Boolean
    When false, the instance is reachable only via a registered custom domain and the default \n\n.search.ai.cloudflare.com host returns 404. Requires at least one custom domain. Defaults to true. publicendpointparams is replaced wholesale on update, so resend defaultdomainenabled on every update to keep the default host off — omitting it resets to true.
    enabled Boolean
    instancesAlloweds List<String>
    Instance IDs exposed through the namespace public endpoint. Empty means nothing is searchable. Every ID must be an existing instance in this namespace, and the list cannot exceed the account's multi-instance search limit.
    mcp GetAiSearchNamespacePublicEndpointParamsMcp
    rateLimit GetAiSearchNamespacePublicEndpointParamsRateLimit
    searchEndpoint GetAiSearchNamespacePublicEndpointParamsSearchEndpoint
    authorizedHosts string[]
    chatCompletionsEndpoint GetAiSearchNamespacePublicEndpointParamsChatCompletionsEndpoint
    customDomains string[]
    Custom domain hostnames that alias this public endpoint. GET and create responses return the current set; on update (PUT) this field is only echoed back when supplied in the request body, otherwise it is null (omit it to leave domains unchanged).
    defaultDomainEnabled boolean
    When false, the instance is reachable only via a registered custom domain and the default \n\n.search.ai.cloudflare.com host returns 404. Requires at least one custom domain. Defaults to true. publicendpointparams is replaced wholesale on update, so resend defaultdomainenabled on every update to keep the default host off — omitting it resets to true.
    enabled boolean
    instancesAlloweds string[]
    Instance IDs exposed through the namespace public endpoint. Empty means nothing is searchable. Every ID must be an existing instance in this namespace, and the list cannot exceed the account's multi-instance search limit.
    mcp GetAiSearchNamespacePublicEndpointParamsMcp
    rateLimit GetAiSearchNamespacePublicEndpointParamsRateLimit
    searchEndpoint GetAiSearchNamespacePublicEndpointParamsSearchEndpoint
    authorized_hosts Sequence[str]
    chat_completions_endpoint GetAiSearchNamespacePublicEndpointParamsChatCompletionsEndpoint
    custom_domains Sequence[str]
    Custom domain hostnames that alias this public endpoint. GET and create responses return the current set; on update (PUT) this field is only echoed back when supplied in the request body, otherwise it is null (omit it to leave domains unchanged).
    default_domain_enabled bool
    When false, the instance is reachable only via a registered custom domain and the default \n\n.search.ai.cloudflare.com host returns 404. Requires at least one custom domain. Defaults to true. publicendpointparams is replaced wholesale on update, so resend defaultdomainenabled on every update to keep the default host off — omitting it resets to true.
    enabled bool
    instances_alloweds Sequence[str]
    Instance IDs exposed through the namespace public endpoint. Empty means nothing is searchable. Every ID must be an existing instance in this namespace, and the list cannot exceed the account's multi-instance search limit.
    mcp GetAiSearchNamespacePublicEndpointParamsMcp
    rate_limit GetAiSearchNamespacePublicEndpointParamsRateLimit
    search_endpoint GetAiSearchNamespacePublicEndpointParamsSearchEndpoint
    authorizedHosts List<String>
    chatCompletionsEndpoint Property Map
    customDomains List<String>
    Custom domain hostnames that alias this public endpoint. GET and create responses return the current set; on update (PUT) this field is only echoed back when supplied in the request body, otherwise it is null (omit it to leave domains unchanged).
    defaultDomainEnabled Boolean
    When false, the instance is reachable only via a registered custom domain and the default \n\n.search.ai.cloudflare.com host returns 404. Requires at least one custom domain. Defaults to true. publicendpointparams is replaced wholesale on update, so resend defaultdomainenabled on every update to keep the default host off — omitting it resets to true.
    enabled Boolean
    instancesAlloweds List<String>
    Instance IDs exposed through the namespace public endpoint. Empty means nothing is searchable. Every ID must be an existing instance in this namespace, and the list cannot exceed the account's multi-instance search limit.
    mcp Property Map
    rateLimit Property Map
    searchEndpoint Property Map

    GetAiSearchNamespacePublicEndpointParamsChatCompletionsEndpoint

    Disabled bool
    Disable chat completions endpoint for this public endpoint
    Disabled bool
    Disable chat completions endpoint for this public endpoint
    disabled bool
    Disable chat completions endpoint for this public endpoint
    disabled Boolean
    Disable chat completions endpoint for this public endpoint
    disabled boolean
    Disable chat completions endpoint for this public endpoint
    disabled bool
    Disable chat completions endpoint for this public endpoint
    disabled Boolean
    Disable chat completions endpoint for this public endpoint

    GetAiSearchNamespacePublicEndpointParamsMcp

    Description string
    Disabled bool
    Disable MCP endpoint for this public endpoint
    Description string
    Disabled bool
    Disable MCP endpoint for this public endpoint
    description string
    disabled bool
    Disable MCP endpoint for this public endpoint
    description String
    disabled Boolean
    Disable MCP endpoint for this public endpoint
    description string
    disabled boolean
    Disable MCP endpoint for this public endpoint
    description str
    disabled bool
    Disable MCP endpoint for this public endpoint
    description String
    disabled Boolean
    Disable MCP endpoint for this public endpoint

    GetAiSearchNamespacePublicEndpointParamsRateLimit

    PeriodMs int
    Requests int
    Technique string
    Available values: "fixed", "sliding".
    PeriodMs int
    Requests int
    Technique string
    Available values: "fixed", "sliding".
    period_ms number
    requests number
    technique string
    Available values: "fixed", "sliding".
    periodMs Integer
    requests Integer
    technique String
    Available values: "fixed", "sliding".
    periodMs number
    requests number
    technique string
    Available values: "fixed", "sliding".
    period_ms int
    requests int
    technique str
    Available values: "fixed", "sliding".
    periodMs Number
    requests Number
    technique String
    Available values: "fixed", "sliding".

    GetAiSearchNamespacePublicEndpointParamsSearchEndpoint

    Disabled bool
    Disable search endpoint for this public endpoint
    Disabled bool
    Disable search endpoint for this public endpoint
    disabled bool
    Disable search endpoint for this public endpoint
    disabled Boolean
    Disable search endpoint for this public endpoint
    disabled boolean
    Disable search endpoint for this public endpoint
    disabled bool
    Disable search endpoint for this public endpoint
    disabled Boolean
    Disable search endpoint for this public endpoint

    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 logo
    Viewing docs for Cloudflare v6.20.0
    published on Tuesday, Aug 25, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial