All Products
Search
Document Center

API Gateway:HttpApiDeployConfig

Last Updated:Feb 11, 2026
ParameterTypeDescriptionExample
object

The AI API configurations.

environmentIdstring

The environment ID.

env-xxx
backendScenestring

The publishing scenario.

SingleService
autoDeployboolean

Specifies whether to enable automatic deployment.

true
gatewayIdstring

The instance ID.

gw-xx
routeBackendBackend

routeBackend

gatewayInfoGatewayInfo

The instance information.

mockHttpApiMockContract

The Mock settings.

gatewayTypestring

网关类型

API
customDomainIdsarray

The IDs of the custom domain names.

string

The domain name ID.

d-xxx
serviceConfigsarray<object>

The service configurations.

object

object

serviceIdstring

The service ID.

svc-xxx
weightlong

The service weight.

100
modelNamePatternstring

The model name matching rule.

qwen-*
modelNamestring

The model name.

qwen-max
intentCodestring

Intent classification code

INQUIRY
matchHttpApiBackendMatchConditions

Match conditions

portinteger

Service port number

80
protocolstring

Service protocol

HTTP
gatewayServiceIdstring

Legacy gateway service ID for backward compatibility

gw-svc-abc123
namestring

Service display name

Qwen-Max-Service
versionstring

Service version tag for tag-based routing scenarios

v2
multiServiceRouteStrategystring

Multi-service routing strategy type

ByWeight
observabilityRouteConfigobject

Observability metrics-based routing config

modestring

Routing mode

Enumeration Value:
  • LeastBusy: LeastBusy.
  • LeastFirstTokenLatency: LeastFirstTokenLatency.
  • LeastTotalLatency: LeastTotalLatency.
LeastBusy
rateLimitfloat

Max traffic ratio per single service

0.8
queueSizeinteger

Queue size

100
policyConfigsarray<object>

The policy configurations.

object

object

typestring

The type of the policy. Valid values:

AiFallback
enableboolean

Specifies whether to enable the policy.

true
aiFallbackConfigobject

The fallback configurations

serviceConfigsarray<object>

List of fallback service configurations

object

object

serviceIdstring

Service ID for fallback

svc-******
targetModelNamestring

targetModelName

gpt-4/llama3-70b
aiSecurityGuardConfigobject

AI Security Guard configuration

serviceAddressstring

Security guard service address

https://api.example.com/v1
checkRequestboolean

Whether to check request content

true
checkResponseboolean

Whether to check response content

true
checkRequestImageboolean

Whether to check request content

true
checkResponseImageboolean

Whether to check response content

true
requestCheckServicestring

Request check service name

https://checker.example.com/validate-request
responseCheckServicestring

Response check service name

https://checker.example.com/validate-response
requestImageCheckServicestring

Request check service name

https://image-checker.example.com/scan
responseImageCheckServicestring

Response check service name

https://image-checker.example.com/scan-response
riskAlertLevelstring

Risk alert level for content moderation

low/medium/high
riskConfigarray<object>

riskConfig

object

object

typestring

Risk type identifier

K8S
levelstring

Risk alert level

Critical
consumerRulesobject

Consumer-specific rules

patternstring

Pattern for matching

first
matchTypestring

Match type

term
bufferLimitinteger

bufferLimit

50
consumerRequestCheckServicearray<object>

Consumer-specific request check configs

object

object

namestring

Consumer name for matching

API
requestCheckServicestring

Request check service name

https://checker.example.com/validate
requestImageCheckServicestring

requestImageCheckService

https://image-check.example.com/scan
matchTypestring

Match type

exact/prefix
modalityTypestring

Modality type

text/image
consumerResponseCheckServicearray<object>

Consumer-specific Response check configs

object

object

namestring

Consumer name for matching

AI_API
responseCheckServicestring

Response check service name

https://checker.example.com/validate-response
responseImageCheckServicestring

responseImageCheckService

https://image-check.example.com/scan-response
matchTypestring

Match type

term
modalityTypestring

Modality type

text/image
consumerRiskLevelarray<object>

Consumer-specific risk level configs

object

object

namestring

Consumer name for matching

APIG-UI
matchTypestring

Match type

term
typestring

Risk type

K8S
levelstring

Risk alert level

Critical
aiTokenRateLimitConfigobject

AI Token Rate Limit configuration

rulesarray<object>

List of rate limit rules

object

object

limitTypestring

Limit type

request/token
matchKeystring

Match key

user_id/api_path
matchTypestring

Match type

term
matchValuestring

Match value

user123
limitModestring

Limit mode

local
limitValueinteger

Limit value

100
globalRulesarray<object>

List of global rate limit rules

object

object

limitTypestring

Limit type for global rules

request
matchKeystring

Match key

user_id
matchTypestring

Match type

term
matchValuestring

Match value

user123
limitModestring

Limit mode for global rules

local
limitValueinteger

Limit value for global rules

100
enableGlobalRulesboolean

Whether to enable global rate limit rules

true
customDomainInfosarray<object>

The information about the custom domain names.

object

object

domainIdstring

The domain name ID.

d-cshee6dlhtgkf4muio3g
namestring

The domain name.

hello-server.com
protocolstring

The protocol.

HTTP
subDomainsarray<object>

The information about the sub-domain names.

object

object

domainIdstring

The domain name ID.

d-csmn42um1hksudfk9eng
namestring

The domain name.

test
protocolstring

The protocol.

HTTP
networkTypestring

The network type.

Intranet