Interface CdnEndpoint
- All Superinterfaces:
ChildResource<CdnProfile>,ExternalChildResource<CdnEndpoint,,CdnProfile> HasInnerModel<EndpointInner>,HasName,HasParent<CdnProfile>,Indexable,Refreshable<CdnEndpoint>
public interface CdnEndpoint
extends ExternalChildResource<CdnEndpoint,CdnProfile>, HasInnerModel<EndpointInner>
An immutable client-side representation of an Azure CDN endpoint.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceGrouping of CDN profile endpoint definition stages as a part of parent CDN profile definition.static interfaceThe entirety of a CDN endpoint update as part of a CDN profile update.static interfaceThe entirety of a CDN profile endpoint definition as a part of a parent CDN profile update.static interfaceThe stage of an CDN profile endpoint update allowing to specify endpoint properties.static interfaceThe stage of an CDN profile endpoint update allowing to specify endpoint properties. -
Method Summary
Modifier and TypeMethodDescriptionGets content types to be compressed.Gets custom domains associated with this endpoint.Gets list of Geo filters.hostname()Gets endpoint host name.inthttpPort()Gets HTTP port value.intGets HTTPS port value.booleanCheck whether content compression is enabled.booleanCheck whether HTTP traffic is allowed.booleanCheck whether HTTPS traffic is allowed.com.azure.core.http.rest.PagedIterable<ResourceUsage> Checks the quota and usage of geo filters and custom domains under the current endpoint.voidloadContent(Set<String> contentPaths) Forcibly preloads the content of the CDN endpoint.loadContentAsync(Set<String> contentPaths) Forcibly preloads the content of the CDN endpoint asynchronously.Gets optimization type.Gets origin host header.Gets origin host nam.Gets origin path.Gets endpoint provisioning state.voidpurgeContent(Set<String> contentPaths) Forcibly purges the content of the CDN endpoint.purgeContentAsync(Set<String> contentPaths) Forcibly purges the content of the CDN endpoint asynchronously.Gets query string caching behavior.Gets endpoint state.Gets the map of the Standard rules engine rules.voidstart()Starts the CDN endpoint, if it is stopped.Starts the CDN endpoint asynchronously, if it is stopped.voidstop()Stops the CDN endpoint, if it is running.Stops the CDN endpoint asynchronously, if it is running.validateCustomDomain(String hostName) Validates a custom domain mapping to ensure it maps to the correct CNAME in DNS for current endpoint.validateCustomDomainAsync(String hostName) Validates a custom domain mapping to ensure it maps to the correct CNAME in DNS for current endpoint asynchronously.Methods inherited from interface com.azure.resourcemanager.resources.fluentcore.arm.models.ExternalChildResource
idMethods inherited from interface com.azure.resourcemanager.resources.fluentcore.model.HasInnerModel
innerModelMethods inherited from interface com.azure.resourcemanager.resources.fluentcore.arm.models.HasName
nameMethods inherited from interface com.azure.resourcemanager.resources.fluentcore.arm.models.HasParent
parentMethods inherited from interface com.azure.resourcemanager.resources.fluentcore.model.Refreshable
refresh, refreshAsync
-
Method Details
-
originHostHeader
String originHostHeader()Gets origin host header.- Returns:
- origin host header
-
originPath
String originPath()Gets origin path.- Returns:
- origin path
-
contentTypesToCompress
Gets content types to be compressed.- Returns:
- content types to be compressed
-
isCompressionEnabled
boolean isCompressionEnabled()Check whether content compression is enabled.- Returns:
- true if content compression is enabled, otherwise false
-
isHttpAllowed
boolean isHttpAllowed()Check whether HTTP traffic is allowed.- Returns:
- true if HTTP traffic is allowed, otherwise false.
-
isHttpsAllowed
boolean isHttpsAllowed()Check whether HTTPS traffic is allowed.- Returns:
- true if HTTPS traffic is allowed, otherwise false
-
queryStringCachingBehavior
QueryStringCachingBehavior queryStringCachingBehavior()Gets query string caching behavior.- Returns:
- query string caching behavior
-
optimizationType
String optimizationType()Gets optimization type.- Returns:
- optimization type
-
geoFilters
Collection<GeoFilter> geoFilters()Gets list of Geo filters.- Returns:
- list of Geo filters
-
hostname
String hostname()Gets endpoint host name.- Returns:
- endpoint host name
-
resourceState
EndpointResourceState resourceState()Gets endpoint state.- Returns:
- endpoint state
-
provisioningState
String provisioningState()Gets endpoint provisioning state.- Returns:
- endpoint provisioning state
-
originHostName
String originHostName()Gets origin host nam.- Returns:
- origin host name
-
httpPort
int httpPort()Gets HTTP port value.- Returns:
- HTTP port value
-
httpsPort
int httpsPort()Gets HTTPS port value.- Returns:
- HTTPS port value
-
customDomains
Gets custom domains associated with this endpoint.- Returns:
- custom domains associated with this endpoint
-
start
void start()Starts the CDN endpoint, if it is stopped. -
startAsync
Starts the CDN endpoint asynchronously, if it is stopped.- Returns:
- a representation of the deferred computation of this call
-
stop
void stop()Stops the CDN endpoint, if it is running. -
stopAsync
Stops the CDN endpoint asynchronously, if it is running.- Returns:
- a representation of the deferred computation of this call
-
purgeContent
Forcibly purges the content of the CDN endpoint.- Parameters:
contentPaths- the paths to the content to be purged, which can be file paths or directory wild cards.
-
purgeContentAsync
Forcibly purges the content of the CDN endpoint asynchronously.- Parameters:
contentPaths- the paths to the content to be purged, which can be file paths or directory wild cards.- Returns:
- a representation of the deferred computation of this call
-
loadContent
Forcibly preloads the content of the CDN endpoint.Note: this is supported for Verizon profiles only.
- Parameters:
contentPaths- the file paths to the content to be loaded
-
loadContentAsync
Forcibly preloads the content of the CDN endpoint asynchronously.Note: this is supported for Verizon profiles only.
- Parameters:
contentPaths- the file paths to the content to be loaded- Returns:
- a representation of the deferred computation of this call
-
validateCustomDomain
Validates a custom domain mapping to ensure it maps to the correct CNAME in DNS for current endpoint.- Parameters:
hostName- the host name, which must be a domain name, of the custom domain- Returns:
- the result of the action, if successful.
-
validateCustomDomainAsync
Validates a custom domain mapping to ensure it maps to the correct CNAME in DNS for current endpoint asynchronously.- Parameters:
hostName- the host name, which must be a domain name, of the custom domain- Returns:
- an observable of the result
-
listResourceUsage
com.azure.core.http.rest.PagedIterable<ResourceUsage> listResourceUsage()Checks the quota and usage of geo filters and custom domains under the current endpoint.- Returns:
- list of quotas and usages of geo filters and custom domains under the current endpoint
-
standardRulesEngineRules
Map<String,DeliveryRule> standardRulesEngineRules()Gets the map of the Standard rules engine rules.- Returns:
- the map of the Standard rules engine rules, indexed by rule name (note: this is only available for Standard Microsoft CDN Sku endpoints)
-