Interface CdnEndpoint

    • Method Detail

      • originHostHeader

        String originHostHeader()
        Returns:
        origin host header
      • originPath

        String originPath()
        Returns:
        origin path
      • contentTypesToCompress

        Set<String> contentTypesToCompress()
        Returns:
        content types to be compressed
      • isCompressionEnabled

        boolean isCompressionEnabled()
        Returns:
        true if content compression is enabled, otherwise false
      • isHttpAllowed

        boolean isHttpAllowed()
        Returns:
        true if HTTP traffic is allowed, otherwise false.
      • isHttpsAllowed

        boolean isHttpsAllowed()
        Returns:
        true if HTTPS traffic is allowed, otherwise false
      • optimizationType

        String optimizationType()
        Returns:
        optimization type
      • hostname

        String hostname()
        Returns:
        endpoint host name
      • provisioningState

        String provisioningState()
        Returns:
        endpoint provisioning state
      • originHostName

        String originHostName()
        Returns:
        origin host name
      • httpPort

        int httpPort()
        Returns:
        HTTP port value
      • httpsPort

        int httpsPort()
        Returns:
        HTTPS port value
      • customDomains

        Set<String> customDomains()
        Returns:
        custom domains associated with this endpoint
      • start

        void start()
        Starts the CDN endpoint, if it is stopped.
      • startAsync

        Mono<Void> 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

        Mono<Void> stopAsync()
        Stops the CDN endpoint asynchronously, if it is running.
        Returns:
        a representation of the deferred computation of this call
      • purgeContent

        void purgeContent​(Set<String> contentPaths)
        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

        Mono<Void> purgeContentAsync​(Set<String> contentPaths)
        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

        void loadContent​(Set<String> contentPaths)
        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

        Mono<Void> loadContentAsync​(Set<String> contentPaths)
        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

        CustomDomainValidationResult validateCustomDomain​(String hostName)
        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

        Mono<CustomDomainValidationResult> validateCustomDomainAsync​(String hostName)
        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