Ingress Class

Container App Ingress configuration.

Constructor

Ingress()

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.

exposed_port
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.

custom_domains
list[<xref:"CustomDomain">]

custom domain bindings for Container Apps' hostnames.

allow_insecure

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

ip_security_restrictions
list[<xref:"IpSecurityRestrictionRule">]

Rules to restrict incoming IP address.

sticky_sessions
<xref:<xref:"IngressStickySessions">>

Sticky Sessions for Single Revision Mode.

client_certificate_mode
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".

cors_policy
<xref:<xref:"CorsPolicy">>

CORS policy for container app.

additional_port_mappings
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