Share via


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

IDefinition<ParentT> 接口

定义

应用程序网关请求路由规则定义的完整。

public interface IDefinition<ParentT> : Microsoft.Azure.Management.Network.Fluent.ApplicationGatewayRequestRoutingRule.Definition.IBlank<ParentT>, Microsoft.Azure.Management.Network.Fluent.ApplicationGatewayRequestRoutingRule.Definition.IWithAttach<ParentT>, Microsoft.Azure.Management.Network.Fluent.ApplicationGatewayRequestRoutingRule.Definition.IWithBackend<ParentT>, Microsoft.Azure.Management.Network.Fluent.ApplicationGatewayRequestRoutingRule.Definition.IWithBackendAddress<ParentT>, Microsoft.Azure.Management.Network.Fluent.ApplicationGatewayRequestRoutingRule.Definition.IWithBackendAddressBeta<ParentT>, Microsoft.Azure.Management.Network.Fluent.ApplicationGatewayRequestRoutingRule.Definition.IWithBackendAddressOrAttach<ParentT>, Microsoft.Azure.Management.Network.Fluent.ApplicationGatewayRequestRoutingRule.Definition.IWithBackendHttpConfigOrRedirect<ParentT>, Microsoft.Azure.Management.Network.Fluent.ApplicationGatewayRequestRoutingRule.Definition.IWithBackendHttpConfigOrSniOrRedirect<ParentT>, Microsoft.Azure.Management.Network.Fluent.ApplicationGatewayRequestRoutingRule.Definition.IWithBackendHttpConfiguration<ParentT>, Microsoft.Azure.Management.Network.Fluent.ApplicationGatewayRequestRoutingRule.Definition.IWithBackendHttpConfigurationOrSni<ParentT>, Microsoft.Azure.Management.Network.Fluent.ApplicationGatewayRequestRoutingRule.Definition.IWithBackendOrAddress<ParentT>, Microsoft.Azure.Management.Network.Fluent.ApplicationGatewayRequestRoutingRule.Definition.IWithCookieBasedAffinity<ParentT>, Microsoft.Azure.Management.Network.Fluent.ApplicationGatewayRequestRoutingRule.Definition.IWithFrontend<ParentT>, Microsoft.Azure.Management.Network.Fluent.ApplicationGatewayRequestRoutingRule.Definition.IWithFrontendPort<ParentT>, Microsoft.Azure.Management.Network.Fluent.ApplicationGatewayRequestRoutingRule.Definition.IWithHostName<ParentT>, Microsoft.Azure.Management.Network.Fluent.ApplicationGatewayRequestRoutingRule.Definition.IWithListener<ParentT>, Microsoft.Azure.Management.Network.Fluent.ApplicationGatewayRequestRoutingRule.Definition.IWithListenerOrFrontend<ParentT>, Microsoft.Azure.Management.Network.Fluent.ApplicationGatewayRequestRoutingRule.Definition.IWithRedirectConfig<ParentT>, Microsoft.Azure.Management.Network.Fluent.ApplicationGatewayRequestRoutingRule.Definition.IWithRedirectConfigBeta<ParentT>, Microsoft.Azure.Management.Network.Fluent.ApplicationGatewayRequestRoutingRule.Definition.IWithSslCertificate<ParentT>, Microsoft.Azure.Management.Network.Fluent.ApplicationGatewayRequestRoutingRule.Definition.IWithSslPassword<Microsoft.Azure.Management.Network.Fluent.ApplicationGatewayRequestRoutingRule.Definition.IWithBackendHttpConfigOrSniOrRedirect<ParentT>>, Microsoft.Azure.Management.Network.Fluent.HasCookieBasedAffinity.Definition.IWithCookieBasedAffinity<Microsoft.Azure.Management.Network.Fluent.ApplicationGatewayRequestRoutingRule.Definition.IWithAttach<ParentT>>, Microsoft.Azure.Management.Network.Fluent.HasHostName.Definition.IWithHostName<Microsoft.Azure.Management.Network.Fluent.ApplicationGatewayRequestRoutingRule.Definition.IWithAttach<ParentT>>, Microsoft.Azure.Management.Network.Fluent.HasServerNameIndication.Definition.IWithServerNameIndication<Microsoft.Azure.Management.Network.Fluent.ApplicationGatewayRequestRoutingRule.Definition.IWithBackendHttpConfiguration<ParentT>>, Microsoft.Azure.Management.Network.Fluent.HasSslCertificate.Definition.IWithSslCertificate<Microsoft.Azure.Management.Network.Fluent.ApplicationGatewayRequestRoutingRule.Definition.IWithBackendHttpConfigOrSniOrRedirect<ParentT>>, Microsoft.Azure.Management.Network.Fluent.HasSslCertificate.Definition.IWithSslPassword<Microsoft.Azure.Management.Network.Fluent.ApplicationGatewayRequestRoutingRule.Definition.IWithBackendHttpConfigOrSniOrRedirect<ParentT>>, Microsoft.Azure.Management.ResourceManager.Fluent.Core.ChildResource.Definition.IInDefinition<ParentT>, Microsoft.Azure.Management.ResourceManager.Fluent.Core.IBeta
type IDefinition<'ParentT> = interface
    interface IBlank<'ParentT>
    interface IWithListenerOrFrontend<'ParentT>
    interface IWithListener<'ParentT>
    interface IWithFrontend<'ParentT>
    interface IWithAttach<'ParentT>
    interface IInDefinition<'ParentT>
    interface IWithHostName<'ParentT>
    interface IWithHostName<IWithAttach<'ParentT>>
    interface IWithCookieBasedAffinity<'ParentT>
    interface IWithCookieBasedAffinity<IWithAttach<'ParentT>>
    interface IWithFrontendPort<'ParentT>
    interface IWithBackend<'ParentT>
    interface IWithBackendAddress<'ParentT>
    interface IWithBackendAddressBeta<'ParentT>
    interface IBeta
    interface IWithBackendOrAddress<'ParentT>
    interface IWithBackendAddressOrAttach<'ParentT>
    interface IWithBackendHttpConfigOrRedirect<'ParentT>
    interface IWithBackendHttpConfiguration<'ParentT>
    interface IWithRedirectConfig<'ParentT>
    interface IWithRedirectConfigBeta<'ParentT>
    interface IWithBackendHttpConfigurationOrSni<'ParentT>
    interface IWithServerNameIndication<IWithBackendHttpConfiguration<'ParentT>>
    interface IWithSslCertificate<'ParentT>
    interface IWithSslCertificate<IWithBackendHttpConfigOrSniOrRedirect<'ParentT>>
    interface IWithBackendHttpConfigOrSniOrRedirect<'ParentT>
    interface IWithSslPassword<IWithBackendHttpConfigOrSniOrRedirect<'ParentT>>
    interface IWithSslPassword<IWithBackendHttpConfigOrSniOrRedirect<'ParentT>>
Public Interface IDefinition(Of ParentT)
Implements IBeta, IBlank(Of ParentT), IInDefinition(Of ParentT), IWithAttach(Of ParentT), IWithBackend(Of ParentT), IWithBackendAddress(Of ParentT), IWithBackendAddressBeta(Of ParentT), IWithBackendAddressOrAttach(Of ParentT), IWithBackendHttpConfigOrRedirect(Of ParentT), IWithBackendHttpConfigOrSniOrRedirect(Of ParentT), IWithBackendHttpConfiguration(Of ParentT), IWithBackendHttpConfigurationOrSni(Of ParentT), IWithBackendOrAddress(Of ParentT), IWithCookieBasedAffinity(Of IWithAttach(Of ParentT)), IWithCookieBasedAffinity(Of ParentT), IWithFrontend(Of ParentT), IWithFrontendPort(Of ParentT), IWithHostName(Of IWithAttach(Of ParentT)), IWithHostName(Of ParentT), IWithListener(Of ParentT), IWithListenerOrFrontend(Of ParentT), IWithRedirectConfig(Of ParentT), IWithRedirectConfigBeta(Of ParentT), IWithServerNameIndication(Of IWithBackendHttpConfiguration(Of ParentT)), IWithSslCertificate(Of IWithBackendHttpConfigOrSniOrRedirect(Of ParentT)), IWithSslCertificate(Of ParentT), IWithSslPassword(Of IWithBackendHttpConfigOrSniOrRedirect(Of ParentT)), IWithSslPassword(Of IWithBackendHttpConfigOrSniOrRedirect(Of ParentT))

类型参数

ParentT

附加此定义后要返回到的应用程序网关定义的阶段。

实现

方法

Attach()

应用程序网关请求路由规则定义的完整。

(继承自 IInDefinition<ParentT>)
FromFrontendHttpPort(Int32)

将指定端口号和 HTTP 协议的新侦听器与此规则相关联。

(继承自 IWithFrontendPort<ParentT>)
FromFrontendHttpsPort(Int32)

将指定端口号的新侦听器和 HTTPS 协议与此规则相关联。

(继承自 IWithFrontendPort<ParentT>)
FromListener(String)

将请求路由规则与前端侦听器相关联。 如果具有指定名称的侦听器尚不存在,则必须在应用程序网关定义的可选阶段单独定义该侦听器。 这只会按侦听器名称添加对侦听器的引用。 另请注意,给定的侦听器一次只能由多个请求路由规则使用。

(继承自 IWithListener<ParentT>)
FromPrivateFrontend()

使规则应用于应用程序网关的专用 (内部) 前端。 如果专用前端 IP 配置尚不存在,则会在自动生成的名称下创建它。 如果应用程序网关没有为其专用前端指定子网,将自动创建一个子网,除非在应用程序网关定义的可选设置中指定了特定的子网。

(继承自 IWithFrontend<ParentT>)
FromPublicFrontend()

使规则应用于应用程序网关的公共 (面向 Internet 的) 前端。 如果公共前端 IP 配置尚不存在,将使用自动生成的名称创建它。 如果应用程序网关没有为其公共前端指定公共 IP 地址,将自动创建一个公共 IP 地址,除非在应用程序网关定义的可选设置中指定了特定的公共 IP 地址。

(继承自 IWithFrontend<ParentT>)
ToBackend(String)

将请求路由规则与此应用程序网关上的后端相关联。 如果后端尚不存在,则会自动创建后端。

(继承自 IWithBackend<ParentT>)
ToBackendFqdn(String)

将 FQDN (完全限定的域名) 添加到与此规则关联的后端。 如果尚未与此规则关联任何后端,则将创建一个具有自动生成名称的新后端。 此调用可以按顺序用于添加多个 FQDN。

(继承自 IWithBackendAddress<ParentT>)
ToBackendHttpConfiguration(String)

将指定的后端 HTTP 设置配置与此请求路由规则相关联。 如果后端配置尚不存在,则必须在应用程序网关定义的可选部分中定义后端配置。 请求路由规则仅按名称引用它。

(继承自 IWithBackendHttpConfiguration<ParentT>)
ToBackendHttpPort(Int32)

为指定的后端端口和 HTTP 协议创建后端 HTTP 设置配置,并将其与此请求路由规则相关联。 自动生成的名称将用于此新创建的配置。

(继承自 IWithBackendHttpConfiguration<ParentT>)
ToBackendIPAddress(String)

将 IP 地址添加到与此规则关联的后端。 如果尚未与此规则关联任何后端,则将创建一个具有自动生成名称的新后端。 此调用可以按顺序用于添加多个 IP 地址。

(继承自 IWithBackendAddress<ParentT>)
ToBackendIPAddresses(String[])

将指定的 IP 地址添加到与此规则关联的后端。

(继承自 IWithBackendAddressBeta<ParentT>)
WithCookieBasedAffinity()

启用基于 Cookie 的相关性。

(继承自 IWithCookieBasedAffinity<ReturnT>)
WithHostName(String)

指定要引用的主机名。

(继承自 IWithHostName<ReturnT>)
WithoutCookieBasedAffinity()

禁用基于 Cookie 的相关性。

(继承自 IWithCookieBasedAffinity<ReturnT>)
WithoutServerNameIndication()

确保不需要服务器名称指示 (SNI) 。

(继承自 IWithServerNameIndication<ReturnT>)
WithRedirectConfiguration(String)

将指定的重定向配置与此请求路由规则相关联。

(继承自 IWithRedirectConfigBeta<ParentT>)
WithServerNameIndication()

需要服务器名称指示 (SNI) 。

(继承自 IWithServerNameIndication<ReturnT>)
WithSslCertificate(String)

指定要与此资源关联的 SSL 证书。 如果证书尚不存在,则必须在父资源定义的可选部分中定义该证书。

(继承自 IWithSslCertificate<ReturnT>)
WithSslCertificateFromKeyVaultSecretId(String)

使用密钥保管库来分隔私钥的内容。

(继承自 IWithSslCertificate<ReturnT>)
WithSslCertificateFromPfxFile(FileInfo)

指定要将 SSL 证书从 导入到与此资源关联的 PFX 文件。 将使用自动生成的名称来命名证书。

(继承自 IWithSslCertificate<ReturnT>)
WithSslCertificatePassword(String)

指定包含导入 SSL 证书私钥的指定 PFX 文件的密码。

(继承自 IWithSslPassword<ReturnT>)

适用于