1. Packages
  2. Packages
  3. Cloudflare Provider
  4. API Docs
  5. AiSearchNamespace
Viewing docs for Cloudflare v6.18.0
published on Thursday, Jul 16, 2026 by Pulumi
cloudflare logo
Viewing docs for Cloudflare v6.18.0
published on Thursday, Jul 16, 2026 by Pulumi

    Import

    This resource does not currently support pulumi import.

    Create AiSearchNamespace Resource

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

    Constructor syntax

    new AiSearchNamespace(name: string, args: AiSearchNamespaceArgs, opts?: CustomResourceOptions);
    @overload
    def AiSearchNamespace(resource_name: str,
                          args: AiSearchNamespaceArgs,
                          opts: Optional[ResourceOptions] = None)
    
    @overload
    def AiSearchNamespace(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          account_id: Optional[str] = None,
                          name: Optional[str] = None,
                          description: Optional[str] = None)
    func NewAiSearchNamespace(ctx *Context, name string, args AiSearchNamespaceArgs, opts ...ResourceOption) (*AiSearchNamespace, error)
    public AiSearchNamespace(string name, AiSearchNamespaceArgs args, CustomResourceOptions? opts = null)
    public AiSearchNamespace(String name, AiSearchNamespaceArgs args)
    public AiSearchNamespace(String name, AiSearchNamespaceArgs args, CustomResourceOptions options)
    
    type: cloudflare:AiSearchNamespace
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "cloudflare_ai_search_namespace" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args AiSearchNamespaceArgs
    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 AiSearchNamespaceArgs
    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 AiSearchNamespaceArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AiSearchNamespaceArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AiSearchNamespaceArgs
    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 aiSearchNamespaceResource = new Cloudflare.AiSearchNamespace("aiSearchNamespaceResource", new()
    {
        AccountId = "string",
        Name = "string",
        Description = "string",
    });
    
    example, err := cloudflare.NewAiSearchNamespace(ctx, "aiSearchNamespaceResource", &cloudflare.AiSearchNamespaceArgs{
    	AccountId:   pulumi.String("string"),
    	Name:        pulumi.String("string"),
    	Description: pulumi.String("string"),
    })
    
    resource "cloudflare_ai_search_namespace" "aiSearchNamespaceResource" {
      lifecycle {
        create_before_destroy = true
      }
      account_id  = "string"
      name        = "string"
      description = "string"
    }
    
    var aiSearchNamespaceResource = new AiSearchNamespace("aiSearchNamespaceResource", AiSearchNamespaceArgs.builder()
        .accountId("string")
        .name("string")
        .description("string")
        .build());
    
    ai_search_namespace_resource = cloudflare.AiSearchNamespace("aiSearchNamespaceResource",
        account_id="string",
        name="string",
        description="string")
    
    const aiSearchNamespaceResource = new cloudflare.AiSearchNamespace("aiSearchNamespaceResource", {
        accountId: "string",
        name: "string",
        description: "string",
    });
    
    type: cloudflare:AiSearchNamespace
    properties:
        accountId: string
        description: string
        name: string
    

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

    AccountId string
    Name string
    Description string
    Optional description for the namespace. Max 256 characters.
    AccountId string
    Name string
    Description string
    Optional description for the namespace. Max 256 characters.
    account_id string
    name string
    description string
    Optional description for the namespace. Max 256 characters.
    accountId String
    name String
    description String
    Optional description for the namespace. Max 256 characters.
    accountId string
    name string
    description string
    Optional description for the namespace. Max 256 characters.
    account_id str
    name str
    description str
    Optional description for the namespace. Max 256 characters.
    accountId String
    name String
    description String
    Optional description for the namespace. Max 256 characters.

    Outputs

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

    CreatedAt string
    Id string
    The provider-assigned unique ID for this managed resource.
    CreatedAt string
    Id string
    The provider-assigned unique ID for this managed resource.
    created_at string
    id string
    The provider-assigned unique ID for this managed resource.
    createdAt String
    id String
    The provider-assigned unique ID for this managed resource.
    createdAt string
    id string
    The provider-assigned unique ID for this managed resource.
    created_at str
    id str
    The provider-assigned unique ID for this managed resource.
    createdAt String
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing AiSearchNamespace Resource

    Get an existing AiSearchNamespace 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?: AiSearchNamespaceState, opts?: CustomResourceOptions): AiSearchNamespace
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            account_id: Optional[str] = None,
            created_at: Optional[str] = None,
            description: Optional[str] = None,
            name: Optional[str] = None) -> AiSearchNamespace
    func GetAiSearchNamespace(ctx *Context, name string, id IDInput, state *AiSearchNamespaceState, opts ...ResourceOption) (*AiSearchNamespace, error)
    public static AiSearchNamespace Get(string name, Input<string> id, AiSearchNamespaceState? state, CustomResourceOptions? opts = null)
    public static AiSearchNamespace get(String name, Output<String> id, AiSearchNamespaceState state, CustomResourceOptions options)
    resources:  _:    type: cloudflare:AiSearchNamespace    get:      id: ${id}
    import {
      to = cloudflare_ai_search_namespace.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:
    AccountId string
    CreatedAt string
    Description string
    Optional description for the namespace. Max 256 characters.
    Name string
    AccountId string
    CreatedAt string
    Description string
    Optional description for the namespace. Max 256 characters.
    Name string
    account_id string
    created_at string
    description string
    Optional description for the namespace. Max 256 characters.
    name string
    accountId String
    createdAt String
    description String
    Optional description for the namespace. Max 256 characters.
    name String
    accountId string
    createdAt string
    description string
    Optional description for the namespace. Max 256 characters.
    name string
    account_id str
    created_at str
    description str
    Optional description for the namespace. Max 256 characters.
    name str
    accountId String
    createdAt String
    description String
    Optional description for the namespace. Max 256 characters.
    name String

    Package Details

    Repository
    Cloudflare pulumi/pulumi-cloudflare
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the cloudflare Terraform Provider.
    cloudflare logo
    Viewing docs for Cloudflare v6.18.0
    published on Thursday, Jul 16, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial