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

Endpoint 构造函数

定义

重载

Endpoint()

初始化 Endpoint 类的新实例。

Endpoint(String, IList<DeepCreatedOrigin>, String, String, String, SystemData, IDictionary<String,String>, String, IList<String>, String, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>, Nullable<QueryStringCachingBehavior>, String, String, IList<GeoFilter>, ResourceReference, IList<UrlSigningKey>, EndpointPropertiesUpdateParametersDeliveryPolicy, EndpointPropertiesUpdateParametersWebApplicationFirewallPolicyLink, String, IList<DeepCreatedOriginGroup>, String, String)

初始化 Endpoint 类的新实例。

Endpoint()

初始化 Endpoint 类的新实例。

public Endpoint ();
Public Sub New ()

适用于

初始化 Endpoint 类的新实例。

public Endpoint (string location, System.Collections.Generic.IList<Microsoft.Azure.Management.Cdn.Models.DeepCreatedOrigin> origins, string id = default, string name = default, string type = default, Microsoft.Azure.Management.Cdn.Models.SystemData systemData = default, System.Collections.Generic.IDictionary<string,string> tags = default, string originPath = default, System.Collections.Generic.IList<string> contentTypesToCompress = default, string originHostHeader = default, bool? isCompressionEnabled = default, bool? isHttpAllowed = default, bool? isHttpsAllowed = default, Microsoft.Azure.Management.Cdn.Models.QueryStringCachingBehavior? queryStringCachingBehavior = default, string optimizationType = default, string probePath = default, System.Collections.Generic.IList<Microsoft.Azure.Management.Cdn.Models.GeoFilter> geoFilters = default, Microsoft.Azure.Management.Cdn.Models.ResourceReference defaultOriginGroup = default, System.Collections.Generic.IList<Microsoft.Azure.Management.Cdn.Models.UrlSigningKey> urlSigningKeys = default, Microsoft.Azure.Management.Cdn.Models.EndpointPropertiesUpdateParametersDeliveryPolicy deliveryPolicy = default, Microsoft.Azure.Management.Cdn.Models.EndpointPropertiesUpdateParametersWebApplicationFirewallPolicyLink webApplicationFirewallPolicyLink = default, string hostName = default, System.Collections.Generic.IList<Microsoft.Azure.Management.Cdn.Models.DeepCreatedOriginGroup> originGroups = default, string resourceState = default, string provisioningState = default);
new Microsoft.Azure.Management.Cdn.Models.Endpoint : string * System.Collections.Generic.IList<Microsoft.Azure.Management.Cdn.Models.DeepCreatedOrigin> * string * string * string * Microsoft.Azure.Management.Cdn.Models.SystemData * System.Collections.Generic.IDictionary<string, string> * string * System.Collections.Generic.IList<string> * string * Nullable<bool> * Nullable<bool> * Nullable<bool> * Nullable<Microsoft.Azure.Management.Cdn.Models.QueryStringCachingBehavior> * string * string * System.Collections.Generic.IList<Microsoft.Azure.Management.Cdn.Models.GeoFilter> * Microsoft.Azure.Management.Cdn.Models.ResourceReference * System.Collections.Generic.IList<Microsoft.Azure.Management.Cdn.Models.UrlSigningKey> * Microsoft.Azure.Management.Cdn.Models.EndpointPropertiesUpdateParametersDeliveryPolicy * Microsoft.Azure.Management.Cdn.Models.EndpointPropertiesUpdateParametersWebApplicationFirewallPolicyLink * string * System.Collections.Generic.IList<Microsoft.Azure.Management.Cdn.Models.DeepCreatedOriginGroup> * string * string -> Microsoft.Azure.Management.Cdn.Models.Endpoint
Public Sub New (location As String, origins As IList(Of DeepCreatedOrigin), Optional id As String = Nothing, Optional name As String = Nothing, Optional type As String = Nothing, Optional systemData As SystemData = Nothing, Optional tags As IDictionary(Of String, String) = Nothing, Optional originPath As String = Nothing, Optional contentTypesToCompress As IList(Of String) = Nothing, Optional originHostHeader As String = Nothing, Optional isCompressionEnabled As Nullable(Of Boolean) = Nothing, Optional isHttpAllowed As Nullable(Of Boolean) = Nothing, Optional isHttpsAllowed As Nullable(Of Boolean) = Nothing, Optional queryStringCachingBehavior As Nullable(Of QueryStringCachingBehavior) = Nothing, Optional optimizationType As String = Nothing, Optional probePath As String = Nothing, Optional geoFilters As IList(Of GeoFilter) = Nothing, Optional defaultOriginGroup As ResourceReference = Nothing, Optional urlSigningKeys As IList(Of UrlSigningKey) = Nothing, Optional deliveryPolicy As EndpointPropertiesUpdateParametersDeliveryPolicy = Nothing, Optional webApplicationFirewallPolicyLink As EndpointPropertiesUpdateParametersWebApplicationFirewallPolicyLink = Nothing, Optional hostName As String = Nothing, Optional originGroups As IList(Of DeepCreatedOriginGroup) = Nothing, Optional resourceState As String = Nothing, Optional provisioningState As String = Nothing)

参数

location
String

资源位置。

origins
IList<DeepCreatedOrigin>

通过 CDN 传递的内容的源。

id
String

资源 ID。

name
String

资源名称。

type
String

资源类型。

systemData
SystemData
tags
IDictionary<String,String>

资源标记。

originPath
String

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

contentTypesToCompress
IList<String>

应用压缩的内容类型列表。 该值应为有效的 MIME 类型。

originHostHeader
String

随每个请求一起发送到源的主机标头值。 仅当终结点使用单一源并且可由源中指定的同一属性重写时,才允许终结点中的此属性。如果将此留空,则请求主机名将确定此值。 Azure CDN 源(例如 Web 应用、Blob 存储和云服务)默认要求此主机头值与源主机名匹配。

isCompressionEnabled
Nullable<Boolean>

指示是否在 CDN 上启用内容压缩。 默认值为 false。 如果启用了压缩,当用户请求压缩版本时,内容将作为压缩内容提供。 当请求的内容小于 1 字节或大于 1 MB 时,不会在 CDN 上压缩内容。

isHttpAllowed
Nullable<Boolean>

指示终结点上是否允许 HTTP 流量。 默认值为 true。 必须至少允许一个 (HTTP 或 HTTPS) 的协议。

isHttpsAllowed
Nullable<Boolean>

指示终结点上是否允许 HTTPS 流量。 默认值为 true。 必须至少允许一个 (HTTP 或 HTTPS) 的协议。

queryStringCachingBehavior
Nullable<QueryStringCachingBehavior>

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

optimizationType
String

指定客户希望此 CDN 终结点优化的方案,例如下载、媒体服务。 通过此信息,CDN 可以应用方案驱动的优化。 可能的值包括:“GeneralWebDelivery”、“GeneralMediaStreaming”、“VideoOnDemandMediaStreaming”、“LargeFileDownload”、“DynamicSiteAcceleration”

probePath
String

源上托管的文件的路径,该路径有助于加速动态内容的传递,并计算 CDN 的最佳路由。 这是相对于源路径的。 仅当使用单个源时,此属性才相关。

geoFilters
IList<GeoFilter>

定义用户在 CDN 终结点中的异地访问的规则列表。 每个地理筛选器定义对指定路径或内容的访问规则,例如,阻止路径 /pictures/ 的 APAC

defaultOriginGroup
ResourceReference

对源组的引用。

urlSigningKeys
IList<UrlSigningKey>

用于验证已签名 URL 哈希的密钥列表。

deliveryPolicy
EndpointPropertiesUpdateParametersDeliveryPolicy

一个策略,指定要用于终结点的传递规则。

webApplicationFirewallPolicyLink
EndpointPropertiesUpdateParametersWebApplicationFirewallPolicyLink

定义终结点 (的Web 应用程序防火墙策略(如果适用))

hostName
String

构造为 {endpointName} 的终结点的主机名。{DNSZone},例如 contoso.azureedge.net

originGroups
IList<DeepCreatedOriginGroup>

源组,由源组成,用于根据可用性对流量进行负载均衡。

resourceState
String

终结点的资源状态。 可能的值包括:“Create”、“删除”、“Run”、“Starting”、“Stopped”、“Stopping”

provisioningState
String

终结点的预配状态。

适用于