共用方式為


ArmAppContainersModelFactory.ContainerAppIngressConfiguration Method

Definition

Initializes a new instance of ContainerAppIngressConfiguration.

public static Azure.ResourceManager.AppContainers.Models.ContainerAppIngressConfiguration ContainerAppIngressConfiguration (string fqdn = default, bool? external = default, int? targetPort = default, int? exposedPort = default, Azure.ResourceManager.AppContainers.Models.ContainerAppIngressTransportMethod? transport = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.AppContainers.Models.ContainerAppRevisionTrafficWeight> traffic = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.AppContainers.Models.ContainerAppCustomDomain> customDomains = default, bool? allowInsecure = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.AppContainers.Models.ContainerAppIPSecurityRestrictionRule> ipSecurityRestrictions = default, Azure.ResourceManager.AppContainers.Models.Affinity? stickySessionsAffinity = default, Azure.ResourceManager.AppContainers.Models.ContainerAppIngressClientCertificateMode? clientCertificateMode = default, Azure.ResourceManager.AppContainers.Models.ContainerAppCorsPolicy corsPolicy = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.AppContainers.Models.IngressPortMapping> additionalPortMappings = default);
static member ContainerAppIngressConfiguration : string * Nullable<bool> * Nullable<int> * Nullable<int> * Nullable<Azure.ResourceManager.AppContainers.Models.ContainerAppIngressTransportMethod> * seq<Azure.ResourceManager.AppContainers.Models.ContainerAppRevisionTrafficWeight> * seq<Azure.ResourceManager.AppContainers.Models.ContainerAppCustomDomain> * Nullable<bool> * seq<Azure.ResourceManager.AppContainers.Models.ContainerAppIPSecurityRestrictionRule> * Nullable<Azure.ResourceManager.AppContainers.Models.Affinity> * Nullable<Azure.ResourceManager.AppContainers.Models.ContainerAppIngressClientCertificateMode> * Azure.ResourceManager.AppContainers.Models.ContainerAppCorsPolicy * seq<Azure.ResourceManager.AppContainers.Models.IngressPortMapping> -> Azure.ResourceManager.AppContainers.Models.ContainerAppIngressConfiguration
Public Shared Function ContainerAppIngressConfiguration (Optional fqdn As String = Nothing, Optional external As Nullable(Of Boolean) = Nothing, Optional targetPort As Nullable(Of Integer) = Nothing, Optional exposedPort As Nullable(Of Integer) = Nothing, Optional transport As Nullable(Of ContainerAppIngressTransportMethod) = Nothing, Optional traffic As IEnumerable(Of ContainerAppRevisionTrafficWeight) = Nothing, Optional customDomains As IEnumerable(Of ContainerAppCustomDomain) = Nothing, Optional allowInsecure As Nullable(Of Boolean) = Nothing, Optional ipSecurityRestrictions As IEnumerable(Of ContainerAppIPSecurityRestrictionRule) = Nothing, Optional stickySessionsAffinity As Nullable(Of Affinity) = Nothing, Optional clientCertificateMode As Nullable(Of ContainerAppIngressClientCertificateMode) = Nothing, Optional corsPolicy As ContainerAppCorsPolicy = Nothing, Optional additionalPortMappings As IEnumerable(Of IngressPortMapping) = Nothing) As ContainerAppIngressConfiguration

Parameters

fqdn
String

Hostname.

external
Nullable<Boolean>

Bool indicating if app exposes an external http endpoint.

targetPort
Nullable<Int32>

Target Port in containers for traffic from ingress.

exposedPort
Nullable<Int32>

Exposed Port in containers for TCP traffic from ingress.

transport
Nullable<ContainerAppIngressTransportMethod>

Ingress transport protocol.

traffic
IEnumerable<ContainerAppRevisionTrafficWeight>

Traffic weights for app's revisions.

customDomains
IEnumerable<ContainerAppCustomDomain>

custom domain bindings for Container Apps' hostnames.

allowInsecure
Nullable<Boolean>

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

ipSecurityRestrictions
IEnumerable<ContainerAppIPSecurityRestrictionRule>

Rules to restrict incoming IP address.

stickySessionsAffinity
Nullable<Affinity>

Sticky Sessions for Single Revision Mode.

clientCertificateMode
Nullable<ContainerAppIngressClientCertificateMode>

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.

corsPolicy
ContainerAppCorsPolicy

CORS policy for container app.

additionalPortMappings
IEnumerable<IngressPortMapping>

Settings to expose additional ports on container app.

Returns

A new ContainerAppIngressConfiguration instance for mocking.

Applies to