Viewing docs for Cloudflare v6.15.0
published on Saturday, May 2, 2026 by Pulumi
published on Saturday, May 2, 2026 by Pulumi
Viewing docs for Cloudflare v6.15.0
published on Saturday, May 2, 2026 by Pulumi
published on Saturday, May 2, 2026 by Pulumi
Accepted Permissions
AI Gateway ReadAI Gateway Write
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";
const exampleAiGateways = cloudflare.getAiGateways({
accountId: "3ebbcb006d4d46d7bb6a8c7f14676cb0",
search: "search",
});
import pulumi
import pulumi_cloudflare as cloudflare
example_ai_gateways = cloudflare.get_ai_gateways(account_id="3ebbcb006d4d46d7bb6a8c7f14676cb0",
search="search")
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.GetAiGateways(ctx, &cloudflare.LookupAiGatewaysArgs{
AccountId: pulumi.StringRef("3ebbcb006d4d46d7bb6a8c7f14676cb0"),
Search: pulumi.StringRef("search"),
}, nil)
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 exampleAiGateways = Cloudflare.Index.GetAiGateways.Invoke(new()
{
AccountId = "3ebbcb006d4d46d7bb6a8c7f14676cb0",
Search = "search",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cloudflare.CloudflareFunctions;
import com.pulumi.cloudflare.inputs.GetAiGatewaysArgs;
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) {
final var exampleAiGateways = CloudflareFunctions.getAiGateways(GetAiGatewaysArgs.builder()
.accountId("3ebbcb006d4d46d7bb6a8c7f14676cb0")
.search("search")
.build());
}
}
variables:
exampleAiGateways:
fn::invoke:
function: cloudflare:getAiGateways
arguments:
accountId: 3ebbcb006d4d46d7bb6a8c7f14676cb0
search: search
Using getAiGateways
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 getAiGateways(args: GetAiGatewaysArgs, opts?: InvokeOptions): Promise<GetAiGatewaysResult>
function getAiGatewaysOutput(args: GetAiGatewaysOutputArgs, opts?: InvokeOptions): Output<GetAiGatewaysResult>def get_ai_gateways(account_id: Optional[str] = None,
max_items: Optional[int] = None,
search: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetAiGatewaysResult
def get_ai_gateways_output(account_id: Optional[pulumi.Input[str]] = None,
max_items: Optional[pulumi.Input[int]] = None,
search: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetAiGatewaysResult]func LookupAiGateways(ctx *Context, args *LookupAiGatewaysArgs, opts ...InvokeOption) (*LookupAiGatewaysResult, error)
func LookupAiGatewaysOutput(ctx *Context, args *LookupAiGatewaysOutputArgs, opts ...InvokeOption) LookupAiGatewaysResultOutput> Note: This function is named LookupAiGateways in the Go SDK.
public static class GetAiGateways
{
public static Task<GetAiGatewaysResult> InvokeAsync(GetAiGatewaysArgs args, InvokeOptions? opts = null)
public static Output<GetAiGatewaysResult> Invoke(GetAiGatewaysInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetAiGatewaysResult> getAiGateways(GetAiGatewaysArgs args, InvokeOptions options)
public static Output<GetAiGatewaysResult> getAiGateways(GetAiGatewaysArgs args, InvokeOptions options)
fn::invoke:
function: cloudflare:index/getAiGateways:getAiGateways
arguments:
# arguments dictionaryThe following arguments are supported:
- account_
id str - max_
items int - Max items to fetch, default: 1000
- search str
- Search by id
getAiGateways Result
The following output properties are available:
- id str
- The provider-assigned unique ID for this managed resource.
- results
Sequence[Get
Ai Gateways Result] - The items returned by the data source
- account_
id str - max_
items int - Max items to fetch, default: 1000
- search str
- Search by id
Supporting Types
GetAiGatewaysResult
- Authentication bool
- Cache
Invalidate boolOn Update - Cache
Ttl int - Collect
Logs bool - Created
At string - Dlp
Get
Ai Gateways Result Dlp - Id string
- gateway id
- Is
Default bool - Log
Management int - Log
Management stringStrategy - Available values: "STOPINSERTING", "DELETEOLDEST".
- Logpush bool
- Logpush
Public stringKey - Modified
At string - Otels
List<Get
Ai Gateways Result Otel> - Rate
Limiting intInterval - Rate
Limiting intLimit - Rate
Limiting stringTechnique - Available values: "fixed", "sliding".
- Retry
Backoff string - Backoff strategy for retry delays Available values: "constant", "linear", "exponential".
- Retry
Delay int - Delay between retry attempts in milliseconds (0-5000)
- Retry
Max intAttempts - Maximum number of retry attempts for failed requests (1-5)
- Store
Id string - Stripe
Get
Ai Gateways Result Stripe - Workers
Ai stringBilling Mode - Controls how Workers AI inference calls routed through this gateway are billed. Only 'postpaid' is currently supported. Available values: "postpaid".
- Zdr bool
- Authentication bool
- Cache
Invalidate boolOn Update - Cache
Ttl int - Collect
Logs bool - Created
At string - Dlp
Get
Ai Gateways Result Dlp - Id string
- gateway id
- Is
Default bool - Log
Management int - Log
Management stringStrategy - Available values: "STOPINSERTING", "DELETEOLDEST".
- Logpush bool
- Logpush
Public stringKey - Modified
At string - Otels
[]Get
Ai Gateways Result Otel - Rate
Limiting intInterval - Rate
Limiting intLimit - Rate
Limiting stringTechnique - Available values: "fixed", "sliding".
- Retry
Backoff string - Backoff strategy for retry delays Available values: "constant", "linear", "exponential".
- Retry
Delay int - Delay between retry attempts in milliseconds (0-5000)
- Retry
Max intAttempts - Maximum number of retry attempts for failed requests (1-5)
- Store
Id string - Stripe
Get
Ai Gateways Result Stripe - Workers
Ai stringBilling Mode - Controls how Workers AI inference calls routed through this gateway are billed. Only 'postpaid' is currently supported. Available values: "postpaid".
- Zdr bool
- authentication Boolean
- cache
Invalidate BooleanOn Update - cache
Ttl Integer - collect
Logs Boolean - created
At String - dlp
Get
Ai Gateways Result Dlp - id String
- gateway id
- is
Default Boolean - log
Management Integer - log
Management StringStrategy - Available values: "STOPINSERTING", "DELETEOLDEST".
- logpush Boolean
- logpush
Public StringKey - modified
At String - otels
List<Get
Ai Gateways Result Otel> - rate
Limiting IntegerInterval - rate
Limiting IntegerLimit - rate
Limiting StringTechnique - Available values: "fixed", "sliding".
- retry
Backoff String - Backoff strategy for retry delays Available values: "constant", "linear", "exponential".
- retry
Delay Integer - Delay between retry attempts in milliseconds (0-5000)
- retry
Max IntegerAttempts - Maximum number of retry attempts for failed requests (1-5)
- store
Id String - stripe
Get
Ai Gateways Result Stripe - workers
Ai StringBilling Mode - Controls how Workers AI inference calls routed through this gateway are billed. Only 'postpaid' is currently supported. Available values: "postpaid".
- zdr Boolean
- authentication boolean
- cache
Invalidate booleanOn Update - cache
Ttl number - collect
Logs boolean - created
At string - dlp
Get
Ai Gateways Result Dlp - id string
- gateway id
- is
Default boolean - log
Management number - log
Management stringStrategy - Available values: "STOPINSERTING", "DELETEOLDEST".
- logpush boolean
- logpush
Public stringKey - modified
At string - otels
Get
Ai Gateways Result Otel[] - rate
Limiting numberInterval - rate
Limiting numberLimit - rate
Limiting stringTechnique - Available values: "fixed", "sliding".
- retry
Backoff string - Backoff strategy for retry delays Available values: "constant", "linear", "exponential".
- retry
Delay number - Delay between retry attempts in milliseconds (0-5000)
- retry
Max numberAttempts - Maximum number of retry attempts for failed requests (1-5)
- store
Id string - stripe
Get
Ai Gateways Result Stripe - workers
Ai stringBilling Mode - Controls how Workers AI inference calls routed through this gateway are billed. Only 'postpaid' is currently supported. Available values: "postpaid".
- zdr boolean
- authentication bool
- cache_
invalidate_ boolon_ update - cache_
ttl int - collect_
logs bool - created_
at str - dlp
Get
Ai Gateways Result Dlp - id str
- gateway id
- is_
default bool - log_
management int - log_
management_ strstrategy - Available values: "STOPINSERTING", "DELETEOLDEST".
- logpush bool
- logpush_
public_ strkey - modified_
at str - otels
Sequence[Get
Ai Gateways Result Otel] - rate_
limiting_ intinterval - rate_
limiting_ intlimit - rate_
limiting_ strtechnique - Available values: "fixed", "sliding".
- retry_
backoff str - Backoff strategy for retry delays Available values: "constant", "linear", "exponential".
- retry_
delay int - Delay between retry attempts in milliseconds (0-5000)
- retry_
max_ intattempts - Maximum number of retry attempts for failed requests (1-5)
- store_
id str - stripe
Get
Ai Gateways Result Stripe - workers_
ai_ strbilling_ mode - Controls how Workers AI inference calls routed through this gateway are billed. Only 'postpaid' is currently supported. Available values: "postpaid".
- zdr bool
- authentication Boolean
- cache
Invalidate BooleanOn Update - cache
Ttl Number - collect
Logs Boolean - created
At String - dlp Property Map
- id String
- gateway id
- is
Default Boolean - log
Management Number - log
Management StringStrategy - Available values: "STOPINSERTING", "DELETEOLDEST".
- logpush Boolean
- logpush
Public StringKey - modified
At String - otels List<Property Map>
- rate
Limiting NumberInterval - rate
Limiting NumberLimit - rate
Limiting StringTechnique - Available values: "fixed", "sliding".
- retry
Backoff String - Backoff strategy for retry delays Available values: "constant", "linear", "exponential".
- retry
Delay Number - Delay between retry attempts in milliseconds (0-5000)
- retry
Max NumberAttempts - Maximum number of retry attempts for failed requests (1-5)
- store
Id String - stripe Property Map
- workers
Ai StringBilling Mode - Controls how Workers AI inference calls routed through this gateway are billed. Only 'postpaid' is currently supported. Available values: "postpaid".
- zdr Boolean
GetAiGatewaysResultDlp
- Action string
- Available values: "BLOCK", "FLAG".
- Enabled bool
- Policies
List<Get
Ai Gateways Result Dlp Policy> - Profiles List<string>
- Action string
- Available values: "BLOCK", "FLAG".
- Enabled bool
- Policies
[]Get
Ai Gateways Result Dlp Policy - Profiles []string
- action String
- Available values: "BLOCK", "FLAG".
- enabled Boolean
- policies
List<Get
Ai Gateways Result Dlp Policy> - profiles List<String>
- action string
- Available values: "BLOCK", "FLAG".
- enabled boolean
- policies
Get
Ai Gateways Result Dlp Policy[] - profiles string[]
- action str
- Available values: "BLOCK", "FLAG".
- enabled bool
- policies
Sequence[Get
Ai Gateways Result Dlp Policy] - profiles Sequence[str]
- action String
- Available values: "BLOCK", "FLAG".
- enabled Boolean
- policies List<Property Map>
- profiles List<String>
GetAiGatewaysResultDlpPolicy
GetAiGatewaysResultOtel
- string
- Content
Type string - Available values: "json", "protobuf".
- Headers Dictionary<string, string>
- Url string
- string
- Content
Type string - Available values: "json", "protobuf".
- Headers map[string]string
- Url string
- String
- content
Type String - Available values: "json", "protobuf".
- headers Map<String,String>
- url String
- string
- content
Type string - Available values: "json", "protobuf".
- headers {[key: string]: string}
- url string
- str
- content_
type str - Available values: "json", "protobuf".
- headers Mapping[str, str]
- url str
- String
- content
Type String - Available values: "json", "protobuf".
- headers Map<String>
- url String
GetAiGatewaysResultStripe
GetAiGatewaysResultStripeUsageEvent
- Payload string
- Payload string
- payload String
- payload string
- payload str
- payload String
Package Details
- Repository
- Cloudflare pulumi/pulumi-cloudflare
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
cloudflareTerraform Provider.
Viewing docs for Cloudflare v6.15.0
published on Saturday, May 2, 2026 by Pulumi
published on Saturday, May 2, 2026 by Pulumi
