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

Route 构造函数

定义

重载

Route()

初始化 Route 类的新实例。

Route(ResourceReference, String, String, String, SystemData, IList<ResourceReference>, String, IList<ResourceReference>, IList<String>, IList<String>, Object, Nullable<AfdQueryStringCachingBehavior>, String, String, String, String, String, String)

初始化 Route 类的新实例。

Route()

初始化 Route 类的新实例。

public Route ();
Public Sub New ()

适用于

Route(ResourceReference, String, String, String, SystemData, IList<ResourceReference>, String, IList<ResourceReference>, IList<String>, IList<String>, Object, Nullable<AfdQueryStringCachingBehavior>, String, String, String, String, String, String)

初始化 Route 类的新实例。

public Route (Microsoft.Azure.Management.Cdn.Models.ResourceReference originGroup, string id = default, string name = default, string type = default, Microsoft.Azure.Management.Cdn.Models.SystemData systemData = default, System.Collections.Generic.IList<Microsoft.Azure.Management.Cdn.Models.ResourceReference> customDomains = default, string originPath = default, System.Collections.Generic.IList<Microsoft.Azure.Management.Cdn.Models.ResourceReference> ruleSets = default, System.Collections.Generic.IList<string> supportedProtocols = default, System.Collections.Generic.IList<string> patternsToMatch = default, object compressionSettings = default, Microsoft.Azure.Management.Cdn.Models.AfdQueryStringCachingBehavior? queryStringCachingBehavior = default, string forwardingProtocol = default, string linkToDefaultDomain = default, string httpsRedirect = default, string enabledState = default, string provisioningState = default, string deploymentStatus = default);
new Microsoft.Azure.Management.Cdn.Models.Route : Microsoft.Azure.Management.Cdn.Models.ResourceReference * string * string * string * Microsoft.Azure.Management.Cdn.Models.SystemData * System.Collections.Generic.IList<Microsoft.Azure.Management.Cdn.Models.ResourceReference> * string * System.Collections.Generic.IList<Microsoft.Azure.Management.Cdn.Models.ResourceReference> * System.Collections.Generic.IList<string> * System.Collections.Generic.IList<string> * obj * Nullable<Microsoft.Azure.Management.Cdn.Models.AfdQueryStringCachingBehavior> * string * string * string * string * string * string -> Microsoft.Azure.Management.Cdn.Models.Route
Public Sub New (originGroup As ResourceReference, Optional id As String = Nothing, Optional name As String = Nothing, Optional type As String = Nothing, Optional systemData As SystemData = Nothing, Optional customDomains As IList(Of ResourceReference) = Nothing, Optional originPath As String = Nothing, Optional ruleSets As IList(Of ResourceReference) = Nothing, Optional supportedProtocols As IList(Of String) = Nothing, Optional patternsToMatch As IList(Of String) = Nothing, Optional compressionSettings As Object = Nothing, Optional queryStringCachingBehavior As Nullable(Of AfdQueryStringCachingBehavior) = Nothing, Optional forwardingProtocol As String = Nothing, Optional linkToDefaultDomain As String = Nothing, Optional httpsRedirect As String = Nothing, Optional enabledState As String = Nothing, Optional provisioningState As String = Nothing, Optional deploymentStatus As String = Nothing)

参数

originGroup
ResourceReference

对源组的引用。

id
String

资源 ID。

name
String

资源名称。

type
String

资源类型。

systemData
SystemData
customDomains
IList<ResourceReference>

此终结点引用的域。

originPath
String

AzureFrontDoor 可用于从中检索内容的源上的目录路径,例如 contoso.cloudapp.net/originpath。

ruleSets
IList<ResourceReference>

此终结点引用的规则集。

supportedProtocols
IList<String>

此路由支持的协议列表。

patternsToMatch
IList<String>

规则的路由模式。

compressionSettings
Object

压缩设置。

queryStringCachingBehavior
Nullable<AfdQueryStringCachingBehavior>

定义 CDN 如何缓存包含查询字符串的请求。 可以在缓存时忽略任何查询字符串,绕过缓存以防止缓存包含查询字符串的请求,或者使用唯一 URL 缓存每个请求。 可能的值包括:“IgnoreQueryString”、“UseQueryString”、“NotSet”

forwardingProtocol
String

将流量转发到后端时此规则将使用的协议。 可能的值包括:“HttpOnly”、“HttpsOnly”、“MatchRequest”

linkToDefaultDomain
String

此路由是否将链接到默认终结点域。 可能的值包括:“Enabled”、“Disabled”

httpsRedirect
String

是否自动将 HTTP 流量重定向到 HTTPS 流量。 请注意,这是设置此规则的简单方法,这将是执行的第一个规则。 可能的值包括:“Enabled”、“Disabled”

enabledState
String

是否要启用此规则。 允许的值为“Enabled”或“Disabled”。 可能的值包括:“Enabled”、“Disabled”

provisioningState
String

预配状态。 可能的值包括:“Succeeded”、“Failed”、“Updateing”、“删除”、“Create”

deploymentStatus
String

可能的值包括:“NotStarted”、“InProgress”、“Succeeded”、“Failed”

适用于