你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

Ingress Class

Container App Ingress configuration.

Variables are only populated by the server, and will be ignored when sending a request.

Inheritance
azure.mgmt.web._serialization.Model
Ingress

Constructor

Ingress(*, external: bool = False, target_port: int | None = None, transport: str | _models.IngressTransportMethod | None = None, traffic: List[_models.TrafficWeight] | None = None, allow_insecure: bool | None = None, **kwargs: Any)

Keyword-Only Parameters

Name Description
external

Bool indicating if app exposes an external http endpoint.

target_port
int

Target Port in containers for traffic from ingress.

transport

Ingress transport protocol. Known values are: "auto", "http", and "http2".

traffic
allow_insecure

Bool indicating if HTTP connections to is allowed. If set to false HTTP connections are automatically redirected to HTTPS connections.

Variables

Name Description
fqdn
str

Hostname.

external

Bool indicating if app exposes an external http endpoint.

target_port
int

Target Port in containers for traffic from ingress.

transport

Ingress transport protocol. Known values are: "auto", "http", and "http2".

traffic
allow_insecure

Bool indicating if HTTP connections to is allowed. If set to false HTTP connections are automatically redirected to HTTPS connections.