1. Packages
  2. Packages
  3. Cloudflare Provider
  4. API Docs
  5. getAiGateways
Viewing docs for Cloudflare v6.15.0
published on Saturday, May 2, 2026 by Pulumi
cloudflare logo
Viewing docs for Cloudflare v6.15.0
published on Saturday, May 2, 2026 by Pulumi

    Accepted Permissions

    • AI Gateway Read
    • AI 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 dictionary

    The following arguments are supported:

    AccountId string
    MaxItems int
    Max items to fetch, default: 1000
    Search string
    Search by id
    AccountId string
    MaxItems int
    Max items to fetch, default: 1000
    Search string
    Search by id
    accountId String
    maxItems Integer
    Max items to fetch, default: 1000
    search String
    Search by id
    accountId string
    maxItems number
    Max items to fetch, default: 1000
    search string
    Search by id
    account_id str
    max_items int
    Max items to fetch, default: 1000
    search str
    Search by id
    accountId String
    maxItems Number
    Max items to fetch, default: 1000
    search String
    Search by id

    getAiGateways Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    Results List<GetAiGatewaysResult>
    The items returned by the data source
    AccountId string
    MaxItems int
    Max items to fetch, default: 1000
    Search string
    Search by id
    Id string
    The provider-assigned unique ID for this managed resource.
    Results []GetAiGatewaysResult
    The items returned by the data source
    AccountId string
    MaxItems int
    Max items to fetch, default: 1000
    Search string
    Search by id
    id String
    The provider-assigned unique ID for this managed resource.
    results List<GetAiGatewaysResult>
    The items returned by the data source
    accountId String
    maxItems Integer
    Max items to fetch, default: 1000
    search String
    Search by id
    id string
    The provider-assigned unique ID for this managed resource.
    results GetAiGatewaysResult[]
    The items returned by the data source
    accountId string
    maxItems number
    Max items to fetch, default: 1000
    search string
    Search by id
    id str
    The provider-assigned unique ID for this managed resource.
    results Sequence[GetAiGatewaysResult]
    The items returned by the data source
    account_id str
    max_items int
    Max items to fetch, default: 1000
    search str
    Search by id
    id String
    The provider-assigned unique ID for this managed resource.
    results List<Property Map>
    The items returned by the data source
    accountId String
    maxItems Number
    Max items to fetch, default: 1000
    search String
    Search by id

    Supporting Types

    GetAiGatewaysResult

    Authentication bool
    CacheInvalidateOnUpdate bool
    CacheTtl int
    CollectLogs bool
    CreatedAt string
    Dlp GetAiGatewaysResultDlp
    Id string
    gateway id
    IsDefault bool
    LogManagement int
    LogManagementStrategy string
    Available values: "STOPINSERTING", "DELETEOLDEST".
    Logpush bool
    LogpushPublicKey string
    ModifiedAt string
    Otels List<GetAiGatewaysResultOtel>
    RateLimitingInterval int
    RateLimitingLimit int
    RateLimitingTechnique string
    Available values: "fixed", "sliding".
    RetryBackoff string
    Backoff strategy for retry delays Available values: "constant", "linear", "exponential".
    RetryDelay int
    Delay between retry attempts in milliseconds (0-5000)
    RetryMaxAttempts int
    Maximum number of retry attempts for failed requests (1-5)
    StoreId string
    Stripe GetAiGatewaysResultStripe
    WorkersAiBillingMode string
    Controls how Workers AI inference calls routed through this gateway are billed. Only 'postpaid' is currently supported. Available values: "postpaid".
    Zdr bool
    Authentication bool
    CacheInvalidateOnUpdate bool
    CacheTtl int
    CollectLogs bool
    CreatedAt string
    Dlp GetAiGatewaysResultDlp
    Id string
    gateway id
    IsDefault bool
    LogManagement int
    LogManagementStrategy string
    Available values: "STOPINSERTING", "DELETEOLDEST".
    Logpush bool
    LogpushPublicKey string
    ModifiedAt string
    Otels []GetAiGatewaysResultOtel
    RateLimitingInterval int
    RateLimitingLimit int
    RateLimitingTechnique string
    Available values: "fixed", "sliding".
    RetryBackoff string
    Backoff strategy for retry delays Available values: "constant", "linear", "exponential".
    RetryDelay int
    Delay between retry attempts in milliseconds (0-5000)
    RetryMaxAttempts int
    Maximum number of retry attempts for failed requests (1-5)
    StoreId string
    Stripe GetAiGatewaysResultStripe
    WorkersAiBillingMode string
    Controls how Workers AI inference calls routed through this gateway are billed. Only 'postpaid' is currently supported. Available values: "postpaid".
    Zdr bool
    authentication Boolean
    cacheInvalidateOnUpdate Boolean
    cacheTtl Integer
    collectLogs Boolean
    createdAt String
    dlp GetAiGatewaysResultDlp
    id String
    gateway id
    isDefault Boolean
    logManagement Integer
    logManagementStrategy String
    Available values: "STOPINSERTING", "DELETEOLDEST".
    logpush Boolean
    logpushPublicKey String
    modifiedAt String
    otels List<GetAiGatewaysResultOtel>
    rateLimitingInterval Integer
    rateLimitingLimit Integer
    rateLimitingTechnique String
    Available values: "fixed", "sliding".
    retryBackoff String
    Backoff strategy for retry delays Available values: "constant", "linear", "exponential".
    retryDelay Integer
    Delay between retry attempts in milliseconds (0-5000)
    retryMaxAttempts Integer
    Maximum number of retry attempts for failed requests (1-5)
    storeId String
    stripe GetAiGatewaysResultStripe
    workersAiBillingMode String
    Controls how Workers AI inference calls routed through this gateway are billed. Only 'postpaid' is currently supported. Available values: "postpaid".
    zdr Boolean
    authentication boolean
    cacheInvalidateOnUpdate boolean
    cacheTtl number
    collectLogs boolean
    createdAt string
    dlp GetAiGatewaysResultDlp
    id string
    gateway id
    isDefault boolean
    logManagement number
    logManagementStrategy string
    Available values: "STOPINSERTING", "DELETEOLDEST".
    logpush boolean
    logpushPublicKey string
    modifiedAt string
    otels GetAiGatewaysResultOtel[]
    rateLimitingInterval number
    rateLimitingLimit number
    rateLimitingTechnique string
    Available values: "fixed", "sliding".
    retryBackoff string
    Backoff strategy for retry delays Available values: "constant", "linear", "exponential".
    retryDelay number
    Delay between retry attempts in milliseconds (0-5000)
    retryMaxAttempts number
    Maximum number of retry attempts for failed requests (1-5)
    storeId string
    stripe GetAiGatewaysResultStripe
    workersAiBillingMode string
    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_on_update bool
    cache_ttl int
    collect_logs bool
    created_at str
    dlp GetAiGatewaysResultDlp
    id str
    gateway id
    is_default bool
    log_management int
    log_management_strategy str
    Available values: "STOPINSERTING", "DELETEOLDEST".
    logpush bool
    logpush_public_key str
    modified_at str
    otels Sequence[GetAiGatewaysResultOtel]
    rate_limiting_interval int
    rate_limiting_limit int
    rate_limiting_technique str
    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_attempts int
    Maximum number of retry attempts for failed requests (1-5)
    store_id str
    stripe GetAiGatewaysResultStripe
    workers_ai_billing_mode str
    Controls how Workers AI inference calls routed through this gateway are billed. Only 'postpaid' is currently supported. Available values: "postpaid".
    zdr bool
    authentication Boolean
    cacheInvalidateOnUpdate Boolean
    cacheTtl Number
    collectLogs Boolean
    createdAt String
    dlp Property Map
    id String
    gateway id
    isDefault Boolean
    logManagement Number
    logManagementStrategy String
    Available values: "STOPINSERTING", "DELETEOLDEST".
    logpush Boolean
    logpushPublicKey String
    modifiedAt String
    otels List<Property Map>
    rateLimitingInterval Number
    rateLimitingLimit Number
    rateLimitingTechnique String
    Available values: "fixed", "sliding".
    retryBackoff String
    Backoff strategy for retry delays Available values: "constant", "linear", "exponential".
    retryDelay Number
    Delay between retry attempts in milliseconds (0-5000)
    retryMaxAttempts Number
    Maximum number of retry attempts for failed requests (1-5)
    storeId String
    stripe Property Map
    workersAiBillingMode String
    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<GetAiGatewaysResultDlpPolicy>
    Profiles List<string>
    Action string
    Available values: "BLOCK", "FLAG".
    Enabled bool
    Policies []GetAiGatewaysResultDlpPolicy
    Profiles []string
    action String
    Available values: "BLOCK", "FLAG".
    enabled Boolean
    policies List<GetAiGatewaysResultDlpPolicy>
    profiles List<String>
    action string
    Available values: "BLOCK", "FLAG".
    enabled boolean
    policies GetAiGatewaysResultDlpPolicy[]
    profiles string[]
    action str
    Available values: "BLOCK", "FLAG".
    enabled bool
    policies Sequence[GetAiGatewaysResultDlpPolicy]
    profiles Sequence[str]
    action String
    Available values: "BLOCK", "FLAG".
    enabled Boolean
    policies List<Property Map>
    profiles List<String>

    GetAiGatewaysResultDlpPolicy

    Action string
    Available values: "FLAG", "BLOCK".
    Checks List<string>
    Enabled bool
    Id string
    Profiles List<string>
    Action string
    Available values: "FLAG", "BLOCK".
    Checks []string
    Enabled bool
    Id string
    Profiles []string
    action String
    Available values: "FLAG", "BLOCK".
    checks List<String>
    enabled Boolean
    id String
    profiles List<String>
    action string
    Available values: "FLAG", "BLOCK".
    checks string[]
    enabled boolean
    id string
    profiles string[]
    action str
    Available values: "FLAG", "BLOCK".
    checks Sequence[str]
    enabled bool
    id str
    profiles Sequence[str]
    action String
    Available values: "FLAG", "BLOCK".
    checks List<String>
    enabled Boolean
    id String
    profiles List<String>

    GetAiGatewaysResultOtel

    Authorization string
    ContentType string
    Available values: "json", "protobuf".
    Headers Dictionary<string, string>
    Url string
    Authorization string
    ContentType string
    Available values: "json", "protobuf".
    Headers map[string]string
    Url string
    authorization String
    contentType String
    Available values: "json", "protobuf".
    headers Map<String,String>
    url String
    authorization string
    contentType string
    Available values: "json", "protobuf".
    headers {[key: string]: string}
    url string
    authorization str
    content_type str
    Available values: "json", "protobuf".
    headers Mapping[str, str]
    url str
    authorization String
    contentType String
    Available values: "json", "protobuf".
    headers Map<String>
    url String

    GetAiGatewaysResultStripe

    GetAiGatewaysResultStripeUsageEvent

    Payload string
    Payload string
    payload String
    payload string
    payload 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.15.0
    published on Saturday, May 2, 2026 by Pulumi
      Try Pulumi Cloud free. Your team will thank you.