Skip to content
Start here

Delete a gateway

client.AIGateway.Delete(ctx, id, body) (*AIGatewayDeleteResponse, error)
DELETE/accounts/{account_id}/ai-gateway/gateways/{id}

Permanently deletes an AI Gateway, its configuration, and its stored logs.

Security
API Token

The preferred authorization scheme for interacting with the Cloudflare API. Create a token.

Example:Authorization: Bearer Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY
API Email + API Key

The previous authorization scheme for interacting with the Cloudflare API, used in conjunction with a Global API key.

Example:X-Auth-Email: user@example.com

The previous authorization scheme for interacting with the Cloudflare API. When possible, use API tokens instead of Global API keys.

Example:X-Auth-Key: 144c9defac04969c7bfad8efaa8ea194
Accepted Permissions (at least one required)
AI Gateway Write
ParametersExpand Collapse
id string

Unique identifier of the AI Gateway within the account.

maxLength64
minLength1
body AIGatewayDeleteParams
AccountID param.Field[string]
ReturnsExpand Collapse
type AIGatewayDeleteResponse struct{…}
ID string

Unique identifier of the AI Gateway within the account.

maxLength64
minLength1
CacheInvalidateOnUpdate bool
CacheTTL int64
minimum0
CollectLogs bool
CreatedAt Time
formatdate-time
ModifiedAt Time
formatdate-time
RateLimitingInterval int64
minimum0
RateLimitingLimit int64
minimum0
Authentication boolOptional

Require authentication for gateway access. New gateways must have authentication enabled. Once enabled, authentication cannot be disabled.

ByokOnly boolOptional

Requires customer-provided provider credentials and prevents fallback to Unified Billing.

DLP AIGatewayDeleteResponseDLPOptional
One of the following:
type AIGatewayDeleteResponseDLPObject struct{…}
Action AIGatewayDeleteResponseDLPObjectAction
One of the following:
const AIGatewayDeleteResponseDLPObjectActionBlock AIGatewayDeleteResponseDLPObjectAction = "BLOCK"
const AIGatewayDeleteResponseDLPObjectActionFlag AIGatewayDeleteResponseDLPObjectAction = "FLAG"
Enabled bool
Profiles []string
type AIGatewayDeleteResponseDLPObject struct{…}
Enabled bool
Policies []AIGatewayDeleteResponseDLPObjectPolicy
ID string
Action AIGatewayDeleteResponseDLPObjectPoliciesAction
One of the following:
const AIGatewayDeleteResponseDLPObjectPoliciesActionFlag AIGatewayDeleteResponseDLPObjectPoliciesAction = "FLAG"
const AIGatewayDeleteResponseDLPObjectPoliciesActionBlock AIGatewayDeleteResponseDLPObjectPoliciesAction = "BLOCK"
Check []AIGatewayDeleteResponseDLPObjectPoliciesCheck
One of the following:
const AIGatewayDeleteResponseDLPObjectPoliciesCheckRequest AIGatewayDeleteResponseDLPObjectPoliciesCheck = "REQUEST"
const AIGatewayDeleteResponseDLPObjectPoliciesCheckResponse AIGatewayDeleteResponseDLPObjectPoliciesCheck = "RESPONSE"
Enabled bool
Profiles []string
FedrampLevel AIGatewayDeleteResponseFedrampLevelOptional

FedRAMP compliance level: fedramp-medium or fedramp-high.

One of the following:
const AIGatewayDeleteResponseFedrampLevelFedrampMedium AIGatewayDeleteResponseFedrampLevel = "fedramp-medium"
const AIGatewayDeleteResponseFedrampLevelFedrampHigh AIGatewayDeleteResponseFedrampLevel = "fedramp-high"
FedrampMode AIGatewayDeleteResponseFedrampModeOptional

FedRAMP enforcement mode. “prefer” prioritizes compliant connectors but allows fallback. “require” strictly filters.

One of the following:
const AIGatewayDeleteResponseFedrampModePrefer AIGatewayDeleteResponseFedrampMode = "prefer"
const AIGatewayDeleteResponseFedrampModeRequire AIGatewayDeleteResponseFedrampMode = "require"
Guardrails AIGatewayDeleteResponseGuardrailsOptional
Prompt AIGatewayDeleteResponseGuardrailsPrompt
P1 AIGatewayDeleteResponseGuardrailsPromptP1Optional
One of the following:
const AIGatewayDeleteResponseGuardrailsPromptP1Flag AIGatewayDeleteResponseGuardrailsPromptP1 = "FLAG"
const AIGatewayDeleteResponseGuardrailsPromptP1Block AIGatewayDeleteResponseGuardrailsPromptP1 = "BLOCK"
S1 AIGatewayDeleteResponseGuardrailsPromptS1Optional
One of the following:
const AIGatewayDeleteResponseGuardrailsPromptS1Flag AIGatewayDeleteResponseGuardrailsPromptS1 = "FLAG"
const AIGatewayDeleteResponseGuardrailsPromptS1Block AIGatewayDeleteResponseGuardrailsPromptS1 = "BLOCK"
S10 AIGatewayDeleteResponseGuardrailsPromptS10Optional
One of the following:
const AIGatewayDeleteResponseGuardrailsPromptS10Flag AIGatewayDeleteResponseGuardrailsPromptS10 = "FLAG"
const AIGatewayDeleteResponseGuardrailsPromptS10Block AIGatewayDeleteResponseGuardrailsPromptS10 = "BLOCK"
S11 AIGatewayDeleteResponseGuardrailsPromptS11Optional
One of the following:
const AIGatewayDeleteResponseGuardrailsPromptS11Flag AIGatewayDeleteResponseGuardrailsPromptS11 = "FLAG"
const AIGatewayDeleteResponseGuardrailsPromptS11Block AIGatewayDeleteResponseGuardrailsPromptS11 = "BLOCK"
S12 AIGatewayDeleteResponseGuardrailsPromptS12Optional
One of the following:
const AIGatewayDeleteResponseGuardrailsPromptS12Flag AIGatewayDeleteResponseGuardrailsPromptS12 = "FLAG"
const AIGatewayDeleteResponseGuardrailsPromptS12Block AIGatewayDeleteResponseGuardrailsPromptS12 = "BLOCK"
S13 AIGatewayDeleteResponseGuardrailsPromptS13Optional
One of the following:
const AIGatewayDeleteResponseGuardrailsPromptS13Flag AIGatewayDeleteResponseGuardrailsPromptS13 = "FLAG"
const AIGatewayDeleteResponseGuardrailsPromptS13Block AIGatewayDeleteResponseGuardrailsPromptS13 = "BLOCK"
S14 AIGatewayDeleteResponseGuardrailsPromptS14Optional
One of the following:
const AIGatewayDeleteResponseGuardrailsPromptS14Flag AIGatewayDeleteResponseGuardrailsPromptS14 = "FLAG"
const AIGatewayDeleteResponseGuardrailsPromptS14Block AIGatewayDeleteResponseGuardrailsPromptS14 = "BLOCK"
S2 AIGatewayDeleteResponseGuardrailsPromptS2Optional
One of the following:
const AIGatewayDeleteResponseGuardrailsPromptS2Flag AIGatewayDeleteResponseGuardrailsPromptS2 = "FLAG"
const AIGatewayDeleteResponseGuardrailsPromptS2Block AIGatewayDeleteResponseGuardrailsPromptS2 = "BLOCK"
S3 AIGatewayDeleteResponseGuardrailsPromptS3Optional
One of the following:
const AIGatewayDeleteResponseGuardrailsPromptS3Flag AIGatewayDeleteResponseGuardrailsPromptS3 = "FLAG"
const AIGatewayDeleteResponseGuardrailsPromptS3Block AIGatewayDeleteResponseGuardrailsPromptS3 = "BLOCK"
S4 AIGatewayDeleteResponseGuardrailsPromptS4Optional
One of the following:
const AIGatewayDeleteResponseGuardrailsPromptS4Flag AIGatewayDeleteResponseGuardrailsPromptS4 = "FLAG"
const AIGatewayDeleteResponseGuardrailsPromptS4Block AIGatewayDeleteResponseGuardrailsPromptS4 = "BLOCK"
S5 AIGatewayDeleteResponseGuardrailsPromptS5Optional
One of the following:
const AIGatewayDeleteResponseGuardrailsPromptS5Flag AIGatewayDeleteResponseGuardrailsPromptS5 = "FLAG"
const AIGatewayDeleteResponseGuardrailsPromptS5Block AIGatewayDeleteResponseGuardrailsPromptS5 = "BLOCK"
S6 AIGatewayDeleteResponseGuardrailsPromptS6Optional
One of the following:
const AIGatewayDeleteResponseGuardrailsPromptS6Flag AIGatewayDeleteResponseGuardrailsPromptS6 = "FLAG"
const AIGatewayDeleteResponseGuardrailsPromptS6Block AIGatewayDeleteResponseGuardrailsPromptS6 = "BLOCK"
S7 AIGatewayDeleteResponseGuardrailsPromptS7Optional
One of the following:
const AIGatewayDeleteResponseGuardrailsPromptS7Flag AIGatewayDeleteResponseGuardrailsPromptS7 = "FLAG"
const AIGatewayDeleteResponseGuardrailsPromptS7Block AIGatewayDeleteResponseGuardrailsPromptS7 = "BLOCK"
S8 AIGatewayDeleteResponseGuardrailsPromptS8Optional
One of the following:
const AIGatewayDeleteResponseGuardrailsPromptS8Flag AIGatewayDeleteResponseGuardrailsPromptS8 = "FLAG"
const AIGatewayDeleteResponseGuardrailsPromptS8Block AIGatewayDeleteResponseGuardrailsPromptS8 = "BLOCK"
S9 AIGatewayDeleteResponseGuardrailsPromptS9Optional
One of the following:
const AIGatewayDeleteResponseGuardrailsPromptS9Flag AIGatewayDeleteResponseGuardrailsPromptS9 = "FLAG"
const AIGatewayDeleteResponseGuardrailsPromptS9Block AIGatewayDeleteResponseGuardrailsPromptS9 = "BLOCK"
Response AIGatewayDeleteResponseGuardrailsResponse
P1 AIGatewayDeleteResponseGuardrailsResponseP1Optional
One of the following:
const AIGatewayDeleteResponseGuardrailsResponseP1Flag AIGatewayDeleteResponseGuardrailsResponseP1 = "FLAG"
const AIGatewayDeleteResponseGuardrailsResponseP1Block AIGatewayDeleteResponseGuardrailsResponseP1 = "BLOCK"
S1 AIGatewayDeleteResponseGuardrailsResponseS1Optional
One of the following:
const AIGatewayDeleteResponseGuardrailsResponseS1Flag AIGatewayDeleteResponseGuardrailsResponseS1 = "FLAG"
const AIGatewayDeleteResponseGuardrailsResponseS1Block AIGatewayDeleteResponseGuardrailsResponseS1 = "BLOCK"
S10 AIGatewayDeleteResponseGuardrailsResponseS10Optional
One of the following:
const AIGatewayDeleteResponseGuardrailsResponseS10Flag AIGatewayDeleteResponseGuardrailsResponseS10 = "FLAG"
const AIGatewayDeleteResponseGuardrailsResponseS10Block AIGatewayDeleteResponseGuardrailsResponseS10 = "BLOCK"
S11 AIGatewayDeleteResponseGuardrailsResponseS11Optional
One of the following:
const AIGatewayDeleteResponseGuardrailsResponseS11Flag AIGatewayDeleteResponseGuardrailsResponseS11 = "FLAG"
const AIGatewayDeleteResponseGuardrailsResponseS11Block AIGatewayDeleteResponseGuardrailsResponseS11 = "BLOCK"
S12 AIGatewayDeleteResponseGuardrailsResponseS12Optional
One of the following:
const AIGatewayDeleteResponseGuardrailsResponseS12Flag AIGatewayDeleteResponseGuardrailsResponseS12 = "FLAG"
const AIGatewayDeleteResponseGuardrailsResponseS12Block AIGatewayDeleteResponseGuardrailsResponseS12 = "BLOCK"
S13 AIGatewayDeleteResponseGuardrailsResponseS13Optional
One of the following:
const AIGatewayDeleteResponseGuardrailsResponseS13Flag AIGatewayDeleteResponseGuardrailsResponseS13 = "FLAG"
const AIGatewayDeleteResponseGuardrailsResponseS13Block AIGatewayDeleteResponseGuardrailsResponseS13 = "BLOCK"
S14 AIGatewayDeleteResponseGuardrailsResponseS14Optional
One of the following:
const AIGatewayDeleteResponseGuardrailsResponseS14Flag AIGatewayDeleteResponseGuardrailsResponseS14 = "FLAG"
const AIGatewayDeleteResponseGuardrailsResponseS14Block AIGatewayDeleteResponseGuardrailsResponseS14 = "BLOCK"
S2 AIGatewayDeleteResponseGuardrailsResponseS2Optional
One of the following:
const AIGatewayDeleteResponseGuardrailsResponseS2Flag AIGatewayDeleteResponseGuardrailsResponseS2 = "FLAG"
const AIGatewayDeleteResponseGuardrailsResponseS2Block AIGatewayDeleteResponseGuardrailsResponseS2 = "BLOCK"
S3 AIGatewayDeleteResponseGuardrailsResponseS3Optional
One of the following:
const AIGatewayDeleteResponseGuardrailsResponseS3Flag AIGatewayDeleteResponseGuardrailsResponseS3 = "FLAG"
const AIGatewayDeleteResponseGuardrailsResponseS3Block AIGatewayDeleteResponseGuardrailsResponseS3 = "BLOCK"
S4 AIGatewayDeleteResponseGuardrailsResponseS4Optional
One of the following:
const AIGatewayDeleteResponseGuardrailsResponseS4Flag AIGatewayDeleteResponseGuardrailsResponseS4 = "FLAG"
const AIGatewayDeleteResponseGuardrailsResponseS4Block AIGatewayDeleteResponseGuardrailsResponseS4 = "BLOCK"
S5 AIGatewayDeleteResponseGuardrailsResponseS5Optional
One of the following:
const AIGatewayDeleteResponseGuardrailsResponseS5Flag AIGatewayDeleteResponseGuardrailsResponseS5 = "FLAG"
const AIGatewayDeleteResponseGuardrailsResponseS5Block AIGatewayDeleteResponseGuardrailsResponseS5 = "BLOCK"
S6 AIGatewayDeleteResponseGuardrailsResponseS6Optional
One of the following:
const AIGatewayDeleteResponseGuardrailsResponseS6Flag AIGatewayDeleteResponseGuardrailsResponseS6 = "FLAG"
const AIGatewayDeleteResponseGuardrailsResponseS6Block AIGatewayDeleteResponseGuardrailsResponseS6 = "BLOCK"
S7 AIGatewayDeleteResponseGuardrailsResponseS7Optional
One of the following:
const AIGatewayDeleteResponseGuardrailsResponseS7Flag AIGatewayDeleteResponseGuardrailsResponseS7 = "FLAG"
const AIGatewayDeleteResponseGuardrailsResponseS7Block AIGatewayDeleteResponseGuardrailsResponseS7 = "BLOCK"
S8 AIGatewayDeleteResponseGuardrailsResponseS8Optional
One of the following:
const AIGatewayDeleteResponseGuardrailsResponseS8Flag AIGatewayDeleteResponseGuardrailsResponseS8 = "FLAG"
const AIGatewayDeleteResponseGuardrailsResponseS8Block AIGatewayDeleteResponseGuardrailsResponseS8 = "BLOCK"
S9 AIGatewayDeleteResponseGuardrailsResponseS9Optional
One of the following:
const AIGatewayDeleteResponseGuardrailsResponseS9Flag AIGatewayDeleteResponseGuardrailsResponseS9 = "FLAG"
const AIGatewayDeleteResponseGuardrailsResponseS9Block AIGatewayDeleteResponseGuardrailsResponseS9 = "BLOCK"
IsDefault boolOptional
LogClassification boolOptional
LogManagement int64Optional
maximum10000000
minimum10000
LogManagementStrategy AIGatewayDeleteResponseLogManagementStrategyOptional
One of the following:
const AIGatewayDeleteResponseLogManagementStrategyStopInserting AIGatewayDeleteResponseLogManagementStrategy = "STOP_INSERTING"
const AIGatewayDeleteResponseLogManagementStrategyDeleteOldest AIGatewayDeleteResponseLogManagementStrategy = "DELETE_OLDEST"
Logpush boolOptional
LogpushPublicKey stringOptional
maxLength1024
minLength16
Otel []AIGatewayDeleteResponseOtelOptional
Headers map[string, string]
URL string
formaturi
maxLength2048
Authorization stringOptional
maxLength256
ContentType AIGatewayDeleteResponseOtelContentTypeOptional
One of the following:
const AIGatewayDeleteResponseOtelContentTypeJson AIGatewayDeleteResponseOtelContentType = "json"
const AIGatewayDeleteResponseOtelContentTypeProtobuf AIGatewayDeleteResponseOtelContentType = "protobuf"
RateLimitingTechnique AIGatewayDeleteResponseRateLimitingTechniqueOptional
One of the following:
const AIGatewayDeleteResponseRateLimitingTechniqueFixed AIGatewayDeleteResponseRateLimitingTechnique = "fixed"
const AIGatewayDeleteResponseRateLimitingTechniqueSliding AIGatewayDeleteResponseRateLimitingTechnique = "sliding"
RetryBackoff AIGatewayDeleteResponseRetryBackoffOptional

Backoff strategy for retry delays

One of the following:
const AIGatewayDeleteResponseRetryBackoffConstant AIGatewayDeleteResponseRetryBackoff = "constant"
const AIGatewayDeleteResponseRetryBackoffLinear AIGatewayDeleteResponseRetryBackoff = "linear"
const AIGatewayDeleteResponseRetryBackoffExponential AIGatewayDeleteResponseRetryBackoff = "exponential"
RetryDelay int64Optional

Delay between retry attempts in milliseconds (0-60000)

maximum60000
minimum0
RetryMaxAttempts int64Optional

Maximum number of retry attempts for failed requests (1-5)

maximum5
minimum1
SpendLimits AIGatewayDeleteResponseSpendLimitsOptional
Enabled boolOptional
Rules []AIGatewayDeleteResponseSpendLimitsRuleOptional
Limit float64
exclusiveMinimum
minimum0
LimitType AIGatewayDeleteResponseSpendLimitsRulesLimitType
Window int64
exclusiveMinimum
minimum0
ID stringOptional
minLength1
Enabled boolOptional
Metadata map[string, AIGatewayDeleteResponseSpendLimitsRulesMetadata]Optional
One of the following:
type AIGatewayDeleteResponseSpendLimitsRulesMetadataMode struct{…}
Mode AIGatewayDeleteResponseSpendLimitsRulesMetadataModeMode
type AIGatewayDeleteResponseSpendLimitsRulesMetadataObject struct{…}
Mode AIGatewayDeleteResponseSpendLimitsRulesMetadataObjectMode
Values []string
Model AIGatewayDeleteResponseSpendLimitsRulesModelOptional
Mode AIGatewayDeleteResponseSpendLimitsRulesModelMode
Values []string
Provider AIGatewayDeleteResponseSpendLimitsRulesProviderOptional
Mode AIGatewayDeleteResponseSpendLimitsRulesProviderMode
Values []string
Technique AIGatewayDeleteResponseSpendLimitsRulesTechniqueOptional
One of the following:
const AIGatewayDeleteResponseSpendLimitsRulesTechniqueFixed AIGatewayDeleteResponseSpendLimitsRulesTechnique = "fixed"
const AIGatewayDeleteResponseSpendLimitsRulesTechniqueSliding AIGatewayDeleteResponseSpendLimitsRulesTechnique = "sliding"
StoreID stringOptional

Secrets Store used by this gateway. Omit on update to keep the current store. Cannot be cleared while stored keys or secret references depend on it.

Stripe AIGatewayDeleteResponseStripeOptional
Authorization string
UsageEvents []AIGatewayDeleteResponseStripeUsageEvent
Payload string
WorkersAIBillingMode AIGatewayDeleteResponseWorkersAIBillingModeOptional

Controls how Workers AI inference calls routed through this gateway are billed. ‘postpaid’ bills the account directly through Workers AI; ‘unified’ deducts credits via AI Gateway using neuron-based pricing and delegates billing to AI Gateway.

One of the following:
const AIGatewayDeleteResponseWorkersAIBillingModePostpaid AIGatewayDeleteResponseWorkersAIBillingMode = "postpaid"
const AIGatewayDeleteResponseWorkersAIBillingModeUnified AIGatewayDeleteResponseWorkersAIBillingMode = "unified"
Zdr boolOptional

Delete a gateway

package main

import (
  "context"
  "fmt"

  "github.com/cloudflare/cloudflare-go"
  "github.com/cloudflare/cloudflare-go/ai_gateway"
  "github.com/cloudflare/cloudflare-go/option"
)

func main() {
  client := cloudflare.NewClient(
    option.WithAPIToken("Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY"),
  )
  aiGateway, err := client.AIGateway.Delete(
    context.TODO(),
    "my-gateway",
    ai_gateway.AIGatewayDeleteParams{
      AccountID: cloudflare.F("3ebbcb006d4d46d7bb6a8c7f14676cb0"),
    },
  )
  if err != nil {
    panic(err.Error())
  }
  fmt.Printf("%+v\n", aiGateway.ID)
}
{
  "result": {
    "id": "my-gateway",
    "cache_invalidate_on_update": true,
    "cache_ttl": 0,
    "collect_logs": true,
    "created_at": "2019-12-27T18:11:19.117Z",
    "modified_at": "2019-12-27T18:11:19.117Z",
    "rate_limiting_interval": 0,
    "rate_limiting_limit": 0,
    "authentication": true,
    "byok_only": true,
    "dlp": {
      "action": "BLOCK",
      "enabled": true,
      "profiles": [
        "string"
      ]
    },
    "fedramp_level": "fedramp-medium",
    "fedramp_mode": "prefer",
    "guardrails": {
      "prompt": {
        "P1": "FLAG",
        "S1": "FLAG",
        "S10": "FLAG",
        "S11": "FLAG",
        "S12": "FLAG",
        "S13": "FLAG",
        "S14": "FLAG",
        "S2": "FLAG",
        "S3": "FLAG",
        "S4": "FLAG",
        "S5": "FLAG",
        "S6": "FLAG",
        "S7": "FLAG",
        "S8": "FLAG",
        "S9": "FLAG"
      },
      "response": {
        "P1": "FLAG",
        "S1": "FLAG",
        "S10": "FLAG",
        "S11": "FLAG",
        "S12": "FLAG",
        "S13": "FLAG",
        "S14": "FLAG",
        "S2": "FLAG",
        "S3": "FLAG",
        "S4": "FLAG",
        "S5": "FLAG",
        "S6": "FLAG",
        "S7": "FLAG",
        "S8": "FLAG",
        "S9": "FLAG"
      }
    },
    "is_default": true,
    "log_classification": true,
    "log_management": 10000,
    "log_management_strategy": "STOP_INSERTING",
    "logpush": true,
    "logpush_public_key": "xxxxxxxxxxxxxxxx",
    "otel": [
      {
        "headers": {
          "foo": "string"
        },
        "url": "https://example.com",
        "authorization": "authorization",
        "content_type": "json"
      }
    ],
    "rate_limiting_technique": "fixed",
    "retry_backoff": "constant",
    "retry_delay": 0,
    "retry_max_attempts": 1,
    "spend_limits": {
      "enabled": true,
      "rules": [
        {
          "limit": 1,
          "limitType": "cost",
          "window": 1,
          "id": "x",
          "enabled": true,
          "metadata": {
            "foo": {
              "mode": "partition"
            }
          },
          "model": {
            "mode": "filter",
            "values": [
              "string"
            ]
          },
          "provider": {
            "mode": "filter",
            "values": [
              "string"
            ]
          },
          "technique": "fixed"
        }
      ]
    },
    "store_id": "store_id",
    "stripe": {
      "authorization": "authorization",
      "usage_events": [
        {
          "payload": "payload"
        }
      ]
    },
    "workers_ai_billing_mode": "postpaid",
    "zdr": true
  },
  "success": true
}
Returns Examples
{
  "result": {
    "id": "my-gateway",
    "cache_invalidate_on_update": true,
    "cache_ttl": 0,
    "collect_logs": true,
    "created_at": "2019-12-27T18:11:19.117Z",
    "modified_at": "2019-12-27T18:11:19.117Z",
    "rate_limiting_interval": 0,
    "rate_limiting_limit": 0,
    "authentication": true,
    "byok_only": true,
    "dlp": {
      "action": "BLOCK",
      "enabled": true,
      "profiles": [
        "string"
      ]
    },
    "fedramp_level": "fedramp-medium",
    "fedramp_mode": "prefer",
    "guardrails": {
      "prompt": {
        "P1": "FLAG",
        "S1": "FLAG",
        "S10": "FLAG",
        "S11": "FLAG",
        "S12": "FLAG",
        "S13": "FLAG",
        "S14": "FLAG",
        "S2": "FLAG",
        "S3": "FLAG",
        "S4": "FLAG",
        "S5": "FLAG",
        "S6": "FLAG",
        "S7": "FLAG",
        "S8": "FLAG",
        "S9": "FLAG"
      },
      "response": {
        "P1": "FLAG",
        "S1": "FLAG",
        "S10": "FLAG",
        "S11": "FLAG",
        "S12": "FLAG",
        "S13": "FLAG",
        "S14": "FLAG",
        "S2": "FLAG",
        "S3": "FLAG",
        "S4": "FLAG",
        "S5": "FLAG",
        "S6": "FLAG",
        "S7": "FLAG",
        "S8": "FLAG",
        "S9": "FLAG"
      }
    },
    "is_default": true,
    "log_classification": true,
    "log_management": 10000,
    "log_management_strategy": "STOP_INSERTING",
    "logpush": true,
    "logpush_public_key": "xxxxxxxxxxxxxxxx",
    "otel": [
      {
        "headers": {
          "foo": "string"
        },
        "url": "https://example.com",
        "authorization": "authorization",
        "content_type": "json"
      }
    ],
    "rate_limiting_technique": "fixed",
    "retry_backoff": "constant",
    "retry_delay": 0,
    "retry_max_attempts": 1,
    "spend_limits": {
      "enabled": true,
      "rules": [
        {
          "limit": 1,
          "limitType": "cost",
          "window": 1,
          "id": "x",
          "enabled": true,
          "metadata": {
            "foo": {
              "mode": "partition"
            }
          },
          "model": {
            "mode": "filter",
            "values": [
              "string"
            ]
          },
          "provider": {
            "mode": "filter",
            "values": [
              "string"
            ]
          },
          "technique": "fixed"
        }
      ]
    },
    "store_id": "store_id",
    "stripe": {
      "authorization": "authorization",
      "usage_events": [
        {
          "payload": "payload"
        }
      ]
    },
    "workers_ai_billing_mode": "postpaid",
    "zdr": true
  },
  "success": true
}