跳到主要内容

获取企业应用http访问策略列表

基本信息

获取企业应用http访问策略列表

请求路径
GET /openapi/v1/httpdomains

请求参数

名称位置类型必选中文名说明
auto_sslquerystring查询条件,是否为需要自动匹配证书的策略

返回结果

状态码状态码含义说明数据模型
200OK成功Inline

返回数据结构

状态码 200

名称类型必选约束中文名说明
anonymousEnterpriseHTTPGatewayRulefalsenonenone
» IDintegerfalseread-onlyIDnone
» region_namestringtruenoneRegion name所属集群ID
» team_namestringtruenoneTeam name所属团队唯一名称
» app_idintegertruenoneApp id所属应用ID
» auto_ssl_configstringtruenoneAuto ssl config自动签发方式
» http_rule_idstringtruenoneHttp rule idhttp_rule_id
» region_idstringtruenoneRegion idregion id
» tenant_idstringtruenoneTenant id租户id
» service_idstringtruenoneService id组件id
» service_namestringtruenoneService name组件名
» domain_namestringtruenoneDomain name域名
» container_portintegerfalsenoneContainer port容器端口
» protocolstringfalsenoneProtocol域名类型 http https httptphttps httpandhttps
» certificate_idintegerfalsenoneCertificate id证书ID
» domain_typestringfalsenoneDomain type组件域名类型
» service_aliasstringfalsenoneService alias组件别名
» is_seniorbooleanfalsenoneIs senior是否有高级路由
» domain_pathstringfalsenoneDomain path域名path
» domain_cookiestringfalsenoneDomain cookie域名cookie
» domain_heanderstringfalsenoneDomain heander域名heander
» typeintegerfalsenoneType类型(默认:0, 自定义:1)
» the_weightintegerfalsenoneThe weight权重
» rule_extensionsstringfalsenoneRule extensions扩展功能
» is_outer_servicebooleanfalsenoneIs outer service是否已开启对外端口
» auto_sslbooleanfalsenoneAuto ssl是否自动匹配证书,升级为https,如果开启,由外部服务完成升级
» path_rewritebooleanfalsenonePath rewrite是否开启简单路由重写
» rewritesstringfalsenoneRewrites复杂路由重写配置

模型

EnterpriseHTTPGatewayRule

{
"ID": 0,
"region_name": "string",
"team_name": "string",
"app_id": 0,
"auto_ssl_config": "string",
"http_rule_id": "string",
"region_id": "string",
"tenant_id": "string",
"service_id": "string",
"service_name": "string",
"domain_name": "string",
"container_port": -2147483648,
"protocol": "string",
"certificate_id": -2147483648,
"domain_type": "string",
"service_alias": "string",
"is_senior": true,
"domain_path": "string",
"domain_cookie": "string",
"domain_heander": "string",
"type": -2147483648,
"the_weight": -2147483648,
"rule_extensions": "string",
"is_outer_service": true,
"auto_ssl": true,
"path_rewrite": true,
"rewrites": "string"
}

属性

名称类型必选约束中文名说明
IDintegerfalseread-onlyIDnone
region_namestringtruenoneRegion name所属集群ID
team_namestringtruenoneTeam name所属团队唯一名称
app_idintegertruenoneApp id所属应用ID
auto_ssl_configstringtruenoneAuto ssl config自动签发方式
http_rule_idstringtruenoneHttp rule idhttp_rule_id
region_idstringtruenoneRegion idregion id
tenant_idstringtruenoneTenant id租户id
service_idstringtruenoneService id组件id
service_namestringtruenoneService name组件名
domain_namestringtruenoneDomain name域名
container_portintegerfalsenoneContainer port容器端口
protocolstringfalsenoneProtocol域名类型 http https httptphttps httpandhttps
certificate_idintegerfalsenoneCertificate id证书ID
domain_typestringfalsenoneDomain type组件域名类型
service_aliasstringfalsenoneService alias组件别名
is_seniorbooleanfalsenoneIs senior是否有高级路由
domain_pathstringfalsenoneDomain path域名path
domain_cookiestringfalsenoneDomain cookie域名cookie
domain_heanderstringfalsenoneDomain heander域名heander
typeintegerfalsenoneType类型(默认:0, 自定义:1)
the_weightintegerfalsenoneThe weight权重
rule_extensionsstringfalsenoneRule extensions扩展功能
is_outer_servicebooleanfalsenoneIs outer service是否已开启对外端口
auto_sslbooleanfalsenoneAuto ssl是否自动匹配证书,升级为https,如果开启,由外部服务完成升级
path_rewritebooleanfalsenonePath rewrite是否开启简单路由重写
rewritesstringfalsenoneRewrites复杂路由重写配置