All Products
Search
Document Center

API Gateway:HttpApiDeployConfig

Last Updated:May 22, 2026

Parameter

Type

Description

Example

object

AI API configuration.

environmentId

string

Environment ID.

env-xxx

backendScene

string

Deployment scenario.

SingleService

autoDeploy

boolean

Whether to enable automatic deployment.

true

gatewayId

string

Gateway instance ID.

gw-xx

routeBackend Backend

Backend service information.

gatewayInfo GatewayInfo

Gateway information.

mock HttpApiMockContract

Mock configuration.

gatewayType

string

Gateway type.

API

customDomainIds

array

List of custom domain IDs.

string

Domain ID.

d-xxx

envDomainIds

array

string

d-xxx

serviceConfigs

array

List of service configurations.

object

Existing service configuration.

serviceId

string

Service ID.

svc-xxx

weight

integer

Service weight.

100

modelNamePattern

string

Model name matching rule.

qwen-*

modelName

string

Model name.

qwen-max

intentCode

string

Intent code.

INQUIRY

match HttpApiBackendMatchConditions

Matching conditions.

port

integer

Service port number.

80

protocol

string

Service protocol (HTTP/HTTPS).

HTTP

gatewayServiceId

string

Gateway service ID.

gw-svc-abc123

name

string

Service display name.

Qwen-Max-Service

version

string

Service version tag.

V2

multiServiceRouteStrategy

string

Multi-service routing strategy type.

ByWeight

observabilityRouteConfig

object

Observability-based routing configuration.

mode

string

Routing mode.

LeastBusy

rateLimit

number

Maximum traffic ratio for a single service.

0.8

queueSize

integer

Queue size.

100

policyConfigs

array

List of policy configurations.

object

List of policy configurations.

type

string

Policy type.

AiFallback

enable

boolean

Whether to enable.

true

aiFallbackConfig

object

AiFallback policy configuration.

serviceConfigs

array

List of service configurations.

object

List of service configurations.

serviceId

string

Service ID.

svc-******

targetModelName

string

Target model name.

gpt-4/llama3-70b

aiSecurityGuardConfig

object

Loop rules.

serviceAddress

string

Service endpoint specifying the network location of the backend service.

https://api.example.com/v1

checkRequest

boolean

Whether to enable request validation.

true

checkResponse

boolean

Whether to enable response validation.

true

checkRequestImage

boolean

Whether to enable image content validation in requests.

true

checkResponseImage

boolean

Whether to enable image content validation in responses.

true

requestCheckService

string

External service endpoint or configuration used for request validation.

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

responseCheckService

string

External service endpoint or configuration used for response validation.

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

requestImageCheckService

string

External service endpoint or configuration used for image content validation in requests.

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

responseImageCheckService

string

External service endpoint or configuration used for image content validation in responses.

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

riskAlertLevel

string

Risk alert level indicating the severity of content or behavior.

low/medium/high

riskConfig

array

Loop rules.

object

Loop rules.

type

string

Policy type.

K8S

level

string

Conflict level. Valid values:

  • Critical

  • Warning

  • Informational

Critical

consumerRules

object

Loop rules.

pattern

string

When type=relativeMonthly, specifies which week of the month:

  • first: first week

  • second: second week

  • third: third week

  • fourth: fourth week

  • last: last week

first

matchType

string

Query match type:

  • term: exact match

  • regex: regular expression match

  • phrase: phrase match (default)

  • wildcard: fuzzy match

term

bufferLimit

integer

Maximum buffer size in bytes.

50

consumerRequestCheckService

array

Consumer request validation services.

object

name

string

Name.

API

requestCheckService

string

Request validation service.

https://checker.example.com/validate

requestImageCheckService

string

Request image validation service.

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

matchType

string

Match type.

exact/prefix

modalityType

string

Modality type.

text/image

consumerResponseCheckService

array

Consumer response validation services.

object

name

string

Name.

AI_API

responseCheckService

string

Response validation service.

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

responseImageCheckService

string

Response image validation service.

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

matchType

string

Query match type:

  • term: exact match

  • regex: regular expression match

  • phrase: phrase match (default)

  • wildcard: fuzzy match

term

modalityType

string

Modality type.

text/image

consumerRiskLevel

array

Consumer risk levels.

object

name

string

Parameter name.

APIG-UI

matchType

string

Query match type:

  • term: exact match

  • regex: regular expression match

  • phrase: phrase match (default)

  • wildcard: fuzzy match

term

type

string

Backend service scenarios:

  • Single: single service.

  • GrayByWeight: grayscale routing by weight.

  • GrayByLabel: grayscale routing by label.

  • Mock: mock routing.

  • Redirect: redirection routing.

K8S

level

string

Conflict level. Valid values:

  • Critical

  • Warning

  • Informational

Critical

aiTokenRateLimitConfig

object

AI token rate limiting configuration.

rules

array

List of validation or processing rules.

object

List of validation or processing rules.

limitType

string

Rate limiting type.

request/token

matchKey

string

Match key.

user_id/api_path

matchType

string

Query match type:

  • term: exact match

  • regex: regular expression match

  • phrase: phrase match (default)

  • wildcard: fuzzy match

term

matchValue

string

Match value.

user123

limitMode

string

Throttling mode.

local

limitValue

integer

Rate limit value.

100

globalRules

array

Global rules.

object

Global rules.

limitType

string

Rate limiting type.

request

matchKey

string

Match key.

user_id

matchType

string

Query match type:

  • term: exact match

  • regex: regular expression match

  • phrase: phrase match (default)

  • wildcard: fuzzy match

term

matchValue

string

Match value.

user123

limitMode

string

Throttling mode.

local

limitValue

integer

Rate limit value.

100

enableGlobalRules

boolean

Whether to enable global rules.

true

aiStatisticsConfig

object

logRequestContent

boolean

logResponseContent

boolean

customDomainInfos

array

List of custom domain details.

object

List of custom domain details.

domainId

string

Domain ID.

d-cshee6dlhtgk******

name

string

Domain name.

hello-server.com

protocol

string

Protocol.

HTTP

envDomainInfos

array

object

domainId

string

name

string

protocol

string

subDomains

array

List of second-level domain details.

object

Network type.

domainId

string

Domain ID.

d-csmn42um******

name

string

Domain name.

test

protocol

string

Protocol.

HTTP

networkType

string

Network type.

Intranet

builtinRouteNames

array

string