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 exampleAiGateway = cloudflare.getAiGateway({
accountId: "3ebbcb006d4d46d7bb6a8c7f14676cb0",
id: "my-gateway",
});
import pulumi
import pulumi_cloudflare as cloudflare
example_ai_gateway = cloudflare.get_ai_gateway(account_id="3ebbcb006d4d46d7bb6a8c7f14676cb0",
id="my-gateway")
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.GetAiGateway(ctx, &cloudflare.LookupAiGatewayArgs{
AccountId: pulumi.StringRef("3ebbcb006d4d46d7bb6a8c7f14676cb0"),
Id: pulumi.StringRef("my-gateway"),
}, 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 exampleAiGateway = Cloudflare.Index.GetAiGateway.Invoke(new()
{
AccountId = "3ebbcb006d4d46d7bb6a8c7f14676cb0",
Id = "my-gateway",
});
});
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.GetAiGatewayArgs;
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 exampleAiGateway = CloudflareFunctions.getAiGateway(GetAiGatewayArgs.builder()
.accountId("3ebbcb006d4d46d7bb6a8c7f14676cb0")
.id("my-gateway")
.build());
}
}
variables:
exampleAiGateway:
fn::invoke:
function: cloudflare:getAiGateway
arguments:
accountId: 3ebbcb006d4d46d7bb6a8c7f14676cb0
id: my-gateway
Using getAiGateway
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 getAiGateway(args: GetAiGatewayArgs, opts?: InvokeOptions): Promise<GetAiGatewayResult>
function getAiGatewayOutput(args: GetAiGatewayOutputArgs, opts?: InvokeOptions): Output<GetAiGatewayResult>def get_ai_gateway(account_id: Optional[str] = None,
filter: Optional[GetAiGatewayFilter] = None,
id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetAiGatewayResult
def get_ai_gateway_output(account_id: Optional[pulumi.Input[str]] = None,
filter: Optional[pulumi.Input[GetAiGatewayFilterArgs]] = None,
id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetAiGatewayResult]func LookupAiGateway(ctx *Context, args *LookupAiGatewayArgs, opts ...InvokeOption) (*LookupAiGatewayResult, error)
func LookupAiGatewayOutput(ctx *Context, args *LookupAiGatewayOutputArgs, opts ...InvokeOption) LookupAiGatewayResultOutput> Note: This function is named LookupAiGateway in the Go SDK.
public static class GetAiGateway
{
public static Task<GetAiGatewayResult> InvokeAsync(GetAiGatewayArgs args, InvokeOptions? opts = null)
public static Output<GetAiGatewayResult> Invoke(GetAiGatewayInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetAiGatewayResult> getAiGateway(GetAiGatewayArgs args, InvokeOptions options)
public static Output<GetAiGatewayResult> getAiGateway(GetAiGatewayArgs args, InvokeOptions options)
fn::invoke:
function: cloudflare:index/getAiGateway:getAiGateway
arguments:
# arguments dictionaryThe following arguments are supported:
- Account
Id string - Filter
Get
Ai Gateway Filter - Id string
- gateway id
- Account
Id string - Filter
Get
Ai Gateway Filter - Id string
- gateway id
- account
Id String - filter
Get
Ai Gateway Filter - id String
- gateway id
- account
Id string - filter
Get
Ai Gateway Filter - id string
- gateway id
- account_
id str - filter
Get
Ai Gateway Filter - id str
- gateway id
- account
Id String - filter Property Map
- id String
- gateway id
getAiGateway Result
The following output properties are available:
- Authentication bool
- Cache
Invalidate boolOn Update - Cache
Ttl int - Collect
Logs bool - Created
At string - Dlp
Get
Ai Gateway 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 Gateway 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 Gateway 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
- Account
Id string - Filter
Get
Ai Gateway Filter
- Authentication bool
- Cache
Invalidate boolOn Update - Cache
Ttl int - Collect
Logs bool - Created
At string - Dlp
Get
Ai Gateway 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 Gateway 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 Gateway 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
- Account
Id string - Filter
Get
Ai Gateway Filter
- authentication Boolean
- cache
Invalidate BooleanOn Update - cache
Ttl Integer - collect
Logs Boolean - created
At String - dlp
Get
Ai Gateway 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 Gateway 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 Gateway 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
- account
Id String - filter
Get
Ai Gateway Filter
- authentication boolean
- cache
Invalidate booleanOn Update - cache
Ttl number - collect
Logs boolean - created
At string - dlp
Get
Ai Gateway 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 Gateway 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 Gateway 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
- account
Id string - filter
Get
Ai Gateway Filter
- authentication bool
- cache_
invalidate_ boolon_ update - cache_
ttl int - collect_
logs bool - created_
at str - dlp
Get
Ai Gateway 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 Gateway 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 Gateway 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
- account_
id str - filter
Get
Ai Gateway Filter
- 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
- account
Id String - filter Property Map
Supporting Types
GetAiGatewayDlp
- Action string
- Available values: "BLOCK", "FLAG".
- Enabled bool
- Policies
List<Get
Ai Gateway Dlp Policy> - Profiles List<string>
- Action string
- Available values: "BLOCK", "FLAG".
- Enabled bool
- Policies
[]Get
Ai Gateway Dlp Policy - Profiles []string
- action String
- Available values: "BLOCK", "FLAG".
- enabled Boolean
- policies
List<Get
Ai Gateway Dlp Policy> - profiles List<String>
- action string
- Available values: "BLOCK", "FLAG".
- enabled boolean
- policies
Get
Ai Gateway Dlp Policy[] - profiles string[]
- action str
- Available values: "BLOCK", "FLAG".
- enabled bool
- policies
Sequence[Get
Ai Gateway Dlp Policy] - profiles Sequence[str]
- action String
- Available values: "BLOCK", "FLAG".
- enabled Boolean
- policies List<Property Map>
- profiles List<String>
GetAiGatewayDlpPolicy
GetAiGatewayFilter
- Search string
- Search by id
- Search string
- Search by id
- search String
- Search by id
- search string
- Search by id
- search str
- Search by id
- search String
- Search by id
GetAiGatewayOtel
- 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
GetAiGatewayStripe
GetAiGatewayStripeUsageEvent
- 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
