Endpoint Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
Endpoint()
Initializes a new instance of the Endpoint class.
public Endpoint ();
Public Sub New ()
Applies to
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)
Initializes a new instance of the Endpoint class.
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)
Parameters
- location
- String
Resource location.
- origins
- IList<DeepCreatedOrigin>
The source of the content being delivered via CDN.
- id
- String
Resource ID.
- name
- String
Resource name.
- type
- String
Resource type.
- systemData
- SystemData
- tags
- IDictionary<String,String>
Resource tags.
- originPath
- String
A directory path on the origin that CDN can use to retrieve content from, e.g. contoso.cloudapp.net/originpath.
List of content types on which compression applies. The value should be a valid MIME type.
- originHostHeader
- String
The host header value sent to the origin with each request. This property at Endpoint is only allowed when endpoint uses single origin and can be overridden by the same property specified at origin.If you leave this blank, the request hostname determines this value. Azure CDN origins, such as Web Apps, Blob Storage, and Cloud Services require this host header value to match the origin hostname by default.
Indicates whether content compression is enabled on CDN. Default value is false. If compression is enabled, content will be served as compressed if user requests for a compressed version. Content won't be compressed on CDN when requested content is smaller than 1 byte or larger than 1 MB.
Indicates whether HTTP traffic is allowed on the endpoint. Default value is true. At least one protocol (HTTP or HTTPS) must be allowed.
Indicates whether HTTPS traffic is allowed on the endpoint. Default value is true. At least one protocol (HTTP or HTTPS) must be allowed.
- queryStringCachingBehavior
- Nullable<QueryStringCachingBehavior>
Defines how CDN caches requests that include query strings. You can ignore any query strings when caching, bypass caching to prevent requests that contain query strings from being cached, or cache every request with a unique URL. Possible values include: 'IgnoreQueryString', 'BypassCaching', 'UseQueryString', 'NotSet'
- optimizationType
- String
Specifies what scenario the customer wants this CDN endpoint to optimize for, e.g. Download, Media services. With this information, CDN can apply scenario driven optimization. Possible values include: 'GeneralWebDelivery', 'GeneralMediaStreaming', 'VideoOnDemandMediaStreaming', 'LargeFileDownload', 'DynamicSiteAcceleration'
- probePath
- String
Path to a file hosted on the origin which helps accelerate delivery of the dynamic content and calculate the most optimal routes for the CDN. This is relative to the origin path. This property is only relevant when using a single origin.
List of rules defining the user's geo access within a CDN endpoint. Each geo filter defines an access rule to a specified path or content, e.g. block APAC for path /pictures/
- defaultOriginGroup
- ResourceReference
A reference to the origin group.
- urlSigningKeys
- IList<UrlSigningKey>
List of keys used to validate the signed URL hashes.
- deliveryPolicy
- EndpointPropertiesUpdateParametersDeliveryPolicy
A policy that specifies the delivery rules to be used for an endpoint.
- webApplicationFirewallPolicyLink
- EndpointPropertiesUpdateParametersWebApplicationFirewallPolicyLink
Defines the Web Application Firewall policy for the endpoint (if applicable)
- hostName
- String
The host name of the endpoint structured as {endpointName}.{DNSZone}, e.g. contoso.azureedge.net
- originGroups
- IList<DeepCreatedOriginGroup>
The origin groups comprising of origins that are used for load balancing the traffic based on availability.
- resourceState
- String
Resource status of the endpoint. Possible values include: 'Creating', 'Deleting', 'Running', 'Starting', 'Stopped', 'Stopping'
- provisioningState
- String
Provisioning status of the endpoint.