Ingress Class

Container App Ingress configuration.

Constructor

Ingress()

Variables

Name Description
fqdn
str

Hostname.

external

Bool indicating if app exposes an external http endpoint.

targetPort
int

Target Port in containers for traffic from ingress.

exposedPort
int

Exposed Port in containers for TCP traffic from ingress.

transport
Union[str, <xref:"IngressTransportMethod">]

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

traffic
list[<xref:"TrafficWeight">]

Traffic weights for app's revisions.

customDomains
list[<xref:"CustomDomain">]

custom domain bindings for Container Apps' hostnames.

allowInsecure

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

ipSecurityRestrictions
list[<xref:"IpSecurityRestrictionRule">]

Rules to restrict incoming IP address.

stickySessions
<xref:<xref:"IngressStickySessions">>

Sticky Sessions for Single Revision Mode.

clientCertificateMode
Union[str, <xref:"IngressClientCertificateMode">]

Client certificate mode for mTLS authentication. Ignore indicates server drops client certificate on forwarding. Accept indicates server forwards client certificate but does not require a client certificate. Require indicates server requires a client certificate. Known values are: "ignore", "accept", and "require".

corsPolicy
<xref:<xref:"CorsPolicy">>

CORS policy for container app.

additionalPortMappings
list[<xref:"IngressPortMapping">]

Settings to expose additional ports on container app.

Attributes

additionalPortMappings

Settings to expose additional ports on container app.

additionalPortMappings: list['IngressPortMapping']

allowInsecure

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

allowInsecure: bool

clientCertificateMode

Client certificate mode for mTLS authentication. Ignore indicates server drops client certificate on forwarding. Accept indicates server forwards client certificate but does not require a client certificate. Require indicates server requires a client certificate. Known values are: "ignore", "accept", and "require".

clientCertificateMode: str | IngressClientCertificateMode

corsPolicy

CORS policy for container app.

corsPolicy: CorsPolicy

customDomains

custom domain bindings for Container Apps' hostnames.

customDomains: list['CustomDomain']

exposedPort

Exposed Port in containers for TCP traffic from ingress.

exposedPort: int

external

Bool indicating if app exposes an external http endpoint.

external: bool

fqdn

Hostname.

fqdn: str

ipSecurityRestrictions

Rules to restrict incoming IP address.

ipSecurityRestrictions: list['IpSecurityRestrictionRule']

stickySessions

Sticky Sessions for Single Revision Mode.

stickySessions: IngressStickySessions

targetPort

Target Port in containers for traffic from ingress.

targetPort: int

traffic

Traffic weights for app's revisions.

traffic: list['TrafficWeight']

transport

"auto", "http", "http2", and "tcp".

transport: str | IngressTransportMethod