1. Packages
  2. Packages
  3. Cloudflare Provider
  4. API Docs
  5. getAiGatewayDynamicRouting
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 exampleAiGatewayDynamicRouting = cloudflare.getAiGatewayDynamicRouting({
        accountId: "0d37909e38d3e99c29fa2cd343ac421a",
        gatewayId: "54442216",
        id: "54442216",
    });
    
    import pulumi
    import pulumi_cloudflare as cloudflare
    
    example_ai_gateway_dynamic_routing = cloudflare.get_ai_gateway_dynamic_routing(account_id="0d37909e38d3e99c29fa2cd343ac421a",
        gateway_id="54442216",
        id="54442216")
    
    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.GetAiGatewayDynamicRouting(ctx, &cloudflare.LookupAiGatewayDynamicRoutingArgs{
    			AccountId: pulumi.StringRef("0d37909e38d3e99c29fa2cd343ac421a"),
    			GatewayId: "54442216",
    			Id:        "54442216",
    		}, 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 exampleAiGatewayDynamicRouting = Cloudflare.Index.GetAiGatewayDynamicRouting.Invoke(new()
        {
            AccountId = "0d37909e38d3e99c29fa2cd343ac421a",
            GatewayId = "54442216",
            Id = "54442216",
        });
    
    });
    
    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.GetAiGatewayDynamicRoutingArgs;
    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 exampleAiGatewayDynamicRouting = CloudflareFunctions.getAiGatewayDynamicRouting(GetAiGatewayDynamicRoutingArgs.builder()
                .accountId("0d37909e38d3e99c29fa2cd343ac421a")
                .gatewayId("54442216")
                .id("54442216")
                .build());
    
        }
    }
    
    variables:
      exampleAiGatewayDynamicRouting:
        fn::invoke:
          function: cloudflare:getAiGatewayDynamicRouting
          arguments:
            accountId: 0d37909e38d3e99c29fa2cd343ac421a
            gatewayId: '54442216'
            id: '54442216'
    

    Using getAiGatewayDynamicRouting

    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 getAiGatewayDynamicRouting(args: GetAiGatewayDynamicRoutingArgs, opts?: InvokeOptions): Promise<GetAiGatewayDynamicRoutingResult>
    function getAiGatewayDynamicRoutingOutput(args: GetAiGatewayDynamicRoutingOutputArgs, opts?: InvokeOptions): Output<GetAiGatewayDynamicRoutingResult>
    def get_ai_gateway_dynamic_routing(account_id: Optional[str] = None,
                                       gateway_id: Optional[str] = None,
                                       id: Optional[str] = None,
                                       opts: Optional[InvokeOptions] = None) -> GetAiGatewayDynamicRoutingResult
    def get_ai_gateway_dynamic_routing_output(account_id: Optional[pulumi.Input[str]] = None,
                                       gateway_id: Optional[pulumi.Input[str]] = None,
                                       id: Optional[pulumi.Input[str]] = None,
                                       opts: Optional[InvokeOptions] = None) -> Output[GetAiGatewayDynamicRoutingResult]
    func LookupAiGatewayDynamicRouting(ctx *Context, args *LookupAiGatewayDynamicRoutingArgs, opts ...InvokeOption) (*LookupAiGatewayDynamicRoutingResult, error)
    func LookupAiGatewayDynamicRoutingOutput(ctx *Context, args *LookupAiGatewayDynamicRoutingOutputArgs, opts ...InvokeOption) LookupAiGatewayDynamicRoutingResultOutput

    > Note: This function is named LookupAiGatewayDynamicRouting in the Go SDK.

    public static class GetAiGatewayDynamicRouting 
    {
        public static Task<GetAiGatewayDynamicRoutingResult> InvokeAsync(GetAiGatewayDynamicRoutingArgs args, InvokeOptions? opts = null)
        public static Output<GetAiGatewayDynamicRoutingResult> Invoke(GetAiGatewayDynamicRoutingInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetAiGatewayDynamicRoutingResult> getAiGatewayDynamicRouting(GetAiGatewayDynamicRoutingArgs args, InvokeOptions options)
    public static Output<GetAiGatewayDynamicRoutingResult> getAiGatewayDynamicRouting(GetAiGatewayDynamicRoutingArgs args, InvokeOptions options)
    
    fn::invoke:
      function: cloudflare:index/getAiGatewayDynamicRouting:getAiGatewayDynamicRouting
      arguments:
        # arguments dictionary

    The following arguments are supported:

    GatewayId string
    Id string
    The ID of this resource.
    AccountId string
    GatewayId string
    Id string
    The ID of this resource.
    AccountId string
    gatewayId String
    id String
    The ID of this resource.
    accountId String
    gatewayId string
    id string
    The ID of this resource.
    accountId string
    gateway_id str
    id str
    The ID of this resource.
    account_id str
    gatewayId String
    id String
    The ID of this resource.
    accountId String

    getAiGatewayDynamicRouting Result

    The following output properties are available:

    Supporting Types

    GetAiGatewayDynamicRoutingDeployment

    CreatedAt string
    DeploymentId string
    VersionId string
    CreatedAt string
    DeploymentId string
    VersionId string
    createdAt String
    deploymentId String
    versionId String
    createdAt string
    deploymentId string
    versionId string
    createdAt String
    deploymentId String
    versionId String

    GetAiGatewayDynamicRoutingElement

    Id string
    Outputs GetAiGatewayDynamicRoutingElementOutputs
    Properties GetAiGatewayDynamicRoutingElementProperties
    Type string
    Available values: "start", "conditional", "percentage", "rate", "model", "end".
    Id string
    Outputs GetAiGatewayDynamicRoutingElementOutputs
    Properties GetAiGatewayDynamicRoutingElementProperties
    Type string
    Available values: "start", "conditional", "percentage", "rate", "model", "end".
    id String
    outputs GetAiGatewayDynamicRoutingElementOutputs
    properties GetAiGatewayDynamicRoutingElementProperties
    type String
    Available values: "start", "conditional", "percentage", "rate", "model", "end".
    id string
    outputs GetAiGatewayDynamicRoutingElementOutputs
    properties GetAiGatewayDynamicRoutingElementProperties
    type string
    Available values: "start", "conditional", "percentage", "rate", "model", "end".
    id str
    outputs GetAiGatewayDynamicRoutingElementOutputs
    properties GetAiGatewayDynamicRoutingElementProperties
    type str
    Available values: "start", "conditional", "percentage", "rate", "model", "end".
    id String
    outputs Property Map
    properties Property Map
    type String
    Available values: "start", "conditional", "percentage", "rate", "model", "end".

    GetAiGatewayDynamicRoutingElementOutputs

    GetAiGatewayDynamicRoutingElementOutputsFallback

    ElementId string
    ElementId string
    elementId String
    elementId string
    elementId String

    GetAiGatewayDynamicRoutingElementOutputsFalse

    ElementId string
    ElementId string
    elementId String
    elementId string
    elementId String

    GetAiGatewayDynamicRoutingElementOutputsNext

    ElementId string
    ElementId string
    elementId String
    elementId string
    elementId String

    GetAiGatewayDynamicRoutingElementOutputsSuccess

    ElementId string
    ElementId string
    elementId String
    elementId string
    elementId String

    GetAiGatewayDynamicRoutingElementOutputsTrue

    ElementId string
    ElementId string
    elementId String
    elementId string
    elementId String

    GetAiGatewayDynamicRoutingElementProperties

    AiGatewayDynamicRoutingProvider string
    Conditions string
    Key string
    Limit double
    LimitType string
    Available values: "count", "cost".
    Model string
    Retries double
    Timeout double
    Window double
    AiGatewayDynamicRoutingProvider string
    Conditions string
    Key string
    Limit float64
    LimitType string
    Available values: "count", "cost".
    Model string
    Retries float64
    Timeout float64
    Window float64
    aiGatewayDynamicRoutingProvider String
    conditions String
    key String
    limit Double
    limitType String
    Available values: "count", "cost".
    model String
    retries Double
    timeout Double
    window Double
    aiGatewayDynamicRoutingProvider string
    conditions string
    key string
    limit number
    limitType string
    Available values: "count", "cost".
    model string
    retries number
    timeout number
    window number
    ai_gateway_dynamic_routing_provider str
    conditions str
    key str
    limit float
    limit_type str
    Available values: "count", "cost".
    model str
    retries float
    timeout float
    window float
    aiGatewayDynamicRoutingProvider String
    conditions String
    key String
    limit Number
    limitType String
    Available values: "count", "cost".
    model String
    retries Number
    timeout Number
    window Number

    GetAiGatewayDynamicRoutingVersion

    Active string
    Available values: "true", "false".
    CreatedAt string
    Data string
    VersionId string
    Active string
    Available values: "true", "false".
    CreatedAt string
    Data string
    VersionId string
    active String
    Available values: "true", "false".
    createdAt String
    data String
    versionId String
    active string
    Available values: "true", "false".
    createdAt string
    data string
    versionId string
    active str
    Available values: "true", "false".
    created_at str
    data str
    version_id str
    active String
    Available values: "true", "false".
    createdAt String
    data String
    versionId 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.