跳转到主要内容
POST
POST /admin/api/providers

授权

gproxy_session
string
cookie
必填

请求头

x-gproxy-admin-scope
string

Administrative scope selected by the caller.

请求体

application/json
channel
string
必填
name
string
必填
baseUrl
string | null
config
any
connectionProfileId
string | null
displayName
string | null
enabled
boolean | null
id
string | null

Supplied ids let a host import its own; blank or absent mints one.

proxy
any
requestTimeoutMs
integer<uint32> | null

Upstream response wait in milliseconds; None inherits the global setting.

必填范围: x >= 0
streamIdleTimeoutMs
integer<uint32> | null

Maximum stream silence in milliseconds; None inherits the global setting.

必填范围: x >= 0

响应

Success

baseUrl
string | null
必填
channel
string
必填

The channel implementation this provider speaks through; must be one of Gproxy::channels().

config
any
必填

Channel-specific configuration; always a JSON object.

connectionProfileId
string | null
必填
createdAtMs
integer<int64>
必填
displayName
string | null
必填
enabled
boolean
必填
id
string
必填
name
string
必填

Invocation URL prefix.

proxy
any
必填
requestTimeoutMs
integer<uint32> | null
必填

Upstream response wait in milliseconds; None inherits the global setting.

必填范围: x >= 0
streamIdleTimeoutMs
integer<uint32> | null
必填

Maximum stream silence in milliseconds; None inherits the global setting.

必填范围: x >= 0