published on Thursday, Apr 2, 2026 by Pulumi
published on Thursday, Apr 2, 2026 by Pulumi
Import
This resource does not currently support
pulumi import.
Create AiSearchToken Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AiSearchToken(name: string, args: AiSearchTokenArgs, opts?: CustomResourceOptions);@overload
def AiSearchToken(resource_name: str,
args: AiSearchTokenArgs,
opts: Optional[ResourceOptions] = None)
@overload
def AiSearchToken(resource_name: str,
opts: Optional[ResourceOptions] = None,
account_id: Optional[str] = None,
cf_api_id: Optional[str] = None,
cf_api_key: Optional[str] = None,
name: Optional[str] = None)func NewAiSearchToken(ctx *Context, name string, args AiSearchTokenArgs, opts ...ResourceOption) (*AiSearchToken, error)public AiSearchToken(string name, AiSearchTokenArgs args, CustomResourceOptions? opts = null)
public AiSearchToken(String name, AiSearchTokenArgs args)
public AiSearchToken(String name, AiSearchTokenArgs args, CustomResourceOptions options)
type: cloudflare:AiSearchToken
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 AiSearchTokenArgs
- 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 AiSearchTokenArgs
- 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 AiSearchTokenArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AiSearchTokenArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AiSearchTokenArgs
- 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 aiSearchTokenResource = new Cloudflare.Index.AiSearchToken("aiSearchTokenResource", new()
{
AccountId = "string",
CfApiId = "string",
CfApiKey = "string",
Name = "string",
});
example, err := cloudflare.NewAiSearchToken(ctx, "aiSearchTokenResource", &cloudflare.AiSearchTokenArgs{
AccountId: pulumi.String("string"),
CfApiId: pulumi.String("string"),
CfApiKey: pulumi.String("string"),
Name: pulumi.String("string"),
})
var aiSearchTokenResource = new AiSearchToken("aiSearchTokenResource", AiSearchTokenArgs.builder()
.accountId("string")
.cfApiId("string")
.cfApiKey("string")
.name("string")
.build());
ai_search_token_resource = cloudflare.AiSearchToken("aiSearchTokenResource",
account_id="string",
cf_api_id="string",
cf_api_key="string",
name="string")
const aiSearchTokenResource = new cloudflare.AiSearchToken("aiSearchTokenResource", {
accountId: "string",
cfApiId: "string",
cfApiKey: "string",
name: "string",
});
type: cloudflare:AiSearchToken
properties:
accountId: string
cfApiId: string
cfApiKey: string
name: string
AiSearchToken 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 AiSearchToken resource accepts the following input properties:
- account_
id str - cf_
api_ strid - cf_
api_ strkey - name str
Outputs
All input properties are implicitly available as output properties. Additionally, the AiSearchToken resource produces the following output properties:
- Created
At string - Created
By string - Enabled bool
- Id string
- The provider-assigned unique ID for this managed resource.
- Legacy bool
- Modified
At string - Modified
By string
- Created
At string - Created
By string - Enabled bool
- Id string
- The provider-assigned unique ID for this managed resource.
- Legacy bool
- Modified
At string - Modified
By string
- created
At String - created
By String - enabled Boolean
- id String
- The provider-assigned unique ID for this managed resource.
- legacy Boolean
- modified
At String - modified
By String
- created
At string - created
By string - enabled boolean
- id string
- The provider-assigned unique ID for this managed resource.
- legacy boolean
- modified
At string - modified
By string
- created_
at str - created_
by str - enabled bool
- id str
- The provider-assigned unique ID for this managed resource.
- legacy bool
- modified_
at str - modified_
by str
- created
At String - created
By String - enabled Boolean
- id String
- The provider-assigned unique ID for this managed resource.
- legacy Boolean
- modified
At String - modified
By String
Look up Existing AiSearchToken Resource
Get an existing AiSearchToken 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?: AiSearchTokenState, opts?: CustomResourceOptions): AiSearchToken@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
account_id: Optional[str] = None,
cf_api_id: Optional[str] = None,
cf_api_key: Optional[str] = None,
created_at: Optional[str] = None,
created_by: Optional[str] = None,
enabled: Optional[bool] = None,
legacy: Optional[bool] = None,
modified_at: Optional[str] = None,
modified_by: Optional[str] = None,
name: Optional[str] = None) -> AiSearchTokenfunc GetAiSearchToken(ctx *Context, name string, id IDInput, state *AiSearchTokenState, opts ...ResourceOption) (*AiSearchToken, error)public static AiSearchToken Get(string name, Input<string> id, AiSearchTokenState? state, CustomResourceOptions? opts = null)public static AiSearchToken get(String name, Output<String> id, AiSearchTokenState state, CustomResourceOptions options)resources: _: type: cloudflare:AiSearchToken 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 - Cf
Api stringId - Cf
Api stringKey - Created
At string - Created
By string - Enabled bool
- Legacy bool
- Modified
At string - Modified
By string - Name string
- Account
Id string - Cf
Api stringId - Cf
Api stringKey - Created
At string - Created
By string - Enabled bool
- Legacy bool
- Modified
At string - Modified
By string - Name string
- account
Id String - cf
Api StringId - cf
Api StringKey - created
At String - created
By String - enabled Boolean
- legacy Boolean
- modified
At String - modified
By String - name String
- account
Id string - cf
Api stringId - cf
Api stringKey - created
At string - created
By string - enabled boolean
- legacy boolean
- modified
At string - modified
By string - name string
- account_
id str - cf_
api_ strid - cf_
api_ strkey - created_
at str - created_
by str - enabled bool
- legacy bool
- modified_
at str - modified_
by str - name str
- account
Id String - cf
Api StringId - cf
Api StringKey - created
At String - created
By String - enabled Boolean
- legacy Boolean
- modified
At String - modified
By String - name String
Package Details
- Repository
- Cloudflare pulumi/pulumi-cloudflare
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
cloudflareTerraform Provider.
published on Thursday, Apr 2, 2026 by Pulumi
