Spectrum 请求和响应正文中的某些字段需要 Enterprise 计划。要升级您的计划,请联系您的客户团队。
需要 Enterprise 计划的 Spectrum 属性:
| 名称 | 类型 | 描述 | 示例 |
|---|---|---|---|
origin_dns |
object | 用于通过 DNS 发现源站服务器地址的方法和参数。有效的记录类型包括 A、AAAA、SRV 和空(即包含 A 和 AAAA)。请求必须包含 origin_dns 参数或 origin_direct 参数。当同时指定两者时,服务将返回 HTTP 400 Bad Request。 |
origin_dns: {type: A, name: mqtt.example.com, ttl: 1200} |
origin_port |
integer | 源站的目标端口。 | 22 |
proxy_protocol |
string | 启用发往源站的 Proxy Protocol。Spectrum 支持 v1、v2 和 simple proxy protocols。有关更多详细信息,请参阅 Proxy Protocol。 |
off |
ip_firewall |
boolean | 为此应用程序启用 IP Access rules (IP 访问规则)。 | true |
tls |
string | 应用程序的 TLS 终止类型。选项为 off(默认,也称为 Passthrough)、flexible、full 和 strict。有关每种选项的描述,请参阅 配置选项 (Configuration Options)。 |
full |
argo_smart_routing |
boolean | 为应用程序启用 Argo Smart Routing。请注意,它仅适用于 traffic_type 设置为 direct 的 TCP 应用程序。 |
true |
查看 Spectrum API 文档以获取示例 API 请求。