|
名称 |
类型 |
描述 |
示例值 |
|---|---|---|---|
|
object |
HTTP API 发布版本信息 |
||
| revisionId |
string |
API 发布的版本号。 |
apr-xxx |
| environmentInfo |
object |
环境信息。 |
|
| environmentId |
string |
环境 ID。 |
env-xxx |
| name |
string |
环境名。 |
test |
| alias |
string |
环境别名。 |
测试 |
| gatewayInfo |
object |
网关实例信息。 |
|
| gatewayId |
string |
网关 ID。 |
gw-xxx |
| name |
string |
网关名。 |
实例1 |
| subDomains |
array |
环境默认域名列表。 |
|
| HttpApiDomainInfo |
环境默认域名信息。 |
||
| customDomains |
array |
用户域名列表。 |
|
| HttpApiDomainInfo |
用户域名信息。 |
||
| backendScene |
string |
API 发布场景。 |
SingleService |
| backendType |
string |
后端类型。 |
Service |
| serviceConfigs |
array |
已有服务配置,单服务场景下仅允许配置一个条目,按比例、按内容、按标签场景下允许配置多个条目。 |
|
|
object |
|||
| gatewayServiceId |
string |
服务 ID。 |
gs-xxx |
| port |
integer |
服务端口。 |
8080 |
| protocol |
string |
服务协议。 |
HTTP |
| weight |
integer |
权重。 |
100 |
| version |
string |
服务版本。 |
v1 |
| match | HttpApiBackendMatchConditions |
匹配条件。 |
|
| dnsConfigs |
array |
DNS 域名配置,单服务场景下仅允许配置一个条目,按比例、按内容场景下允许配置多个条目。 |
|
|
object |
单个 DNS 域名配置。 |
||
| dnsList |
array |
DNS 域名列表。 |
|
|
string |
单个 DNS 域名配置,格式为域名:端口。 |
www.example.com:80 |
|
| weight |
integer |
权重,范围[1,100],仅在按比例场景下有效。 |
100 |
| match | HttpApiBackendMatchConditions |
匹配条件,仅在按内容场景下有效。 |
|
| vipConfigs |
array |
固定地址配置,单服务场景下仅允许配置一个条目,按比例、按内容场景下允许配置多个条目。 |
|
|
object |
固定地址配置。 |
||
| endpoints |
array |
固定地址列表。 |
|
|
string |
单个地址配置,格式 IP:PORT。 |
192.168.1.100:8080 |
|
| weight |
integer |
权重,范围[1,100],仅在按比例场景下有效。 |
100 |
| match | HttpApiBackendMatchConditions |
匹配条件,仅在按内容场景下有效。 |
|
| cloudProductConfig |
object |
云产品配置。 |
|
| cloudProductType |
string |
云产品类型。 |
FC |
| functionConfigs |
array |
FC 配置。 |
|
|
object |
|||
| name |
string |
函数名。 |
demo-function |
| qualifier |
string |
函数版本或别名。 |
LATEST |
| gatewayServiceId |
string |
关联的服务 ID。 |
gs-xxx |
| weight |
integer |
服务权重。 |
100 |
| match | HttpApiBackendMatchConditions |
匹配条件。 |
|
| containerServiceConfigs |
array |
容器服务配置。 |
|
|
object |
|||
| gatewayServiceId |
string |
关联的服务 ID。 |
gs-xxx |
| name |
string |
k8s service 名称。 |
demo-service |
| namespace |
string |
k8s service 命名空间。 |
default |
| protocol |
string |
服务协议。 |
HTTP |
| weight |
string |
服务权重。 |
100 |
| match | HttpApiBackendMatchConditions |
匹配条件。 |
|
| port |
integer |
服务端口。 |
8080 |
| mseNacosConfigs |
array |
MSE Nacos 配置 |
|
|
object |
|||
| gatewayServiceId |
string |
关联的服务 ID。 |
gs-xxx |
| name |
string |
Nacos 服务名。 |
spring-demo |
| namespace |
string |
Nacos 命名空间。 |
public |
| groupName |
string |
服务分组。 |
DEFAULT_GROUP |
| weight |
integer |
服务权重。 |
100 |
| match | HttpApiBackendMatchConditions |
匹配条件。 |
|
| operations |
array |
接口列表。 |
|
| HttpApiOperationInfo |
接口信息。 |
||
| createTimestamp |
integer |
发布时间戳。 |
1718807057927 |
| isCurrentVersion |
boolean |
是否当前版本 |
true |
该文章对您有帮助吗?