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

IngressPortMapping Class

Port mappings of container app ingress.

All required parameters must be populated in order to send to server.

Constructor

IngressPortMapping(*, external: bool, target_port: int, exposed_port: int | None = None, **kwargs: Any)

Keyword-Only Parameters

Name Description
external

Specifies whether the app port is accessible outside of the environment. Required.

target_port
int

Specifies the port user's container listens on. Required.

exposed_port
int

Specifies the exposed port for the target port. If not specified, it defaults to target port.

Default value: None

Variables

Name Description
external

Specifies whether the app port is accessible outside of the environment. Required.

target_port
int

Specifies the port user's container listens on. Required.

exposed_port
int

Specifies the exposed port for the target port. If not specified, it defaults to target port.