Interface CdnProfile
-
- All Superinterfaces:
GroupableResource<CdnManager,ProfileInner>,HasId,HasInnerModel<ProfileInner>,HasManager<CdnManager>,HasName,HasResourceGroup,Indexable,Refreshable<CdnProfile>,Resource,Updatable<CdnProfile.Update>
public interface CdnProfile extends GroupableResource<CdnManager,ProfileInner>, Refreshable<CdnProfile>, Updatable<CdnProfile.Update>
An immutable client-side representation of an Azure CDN profile.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceCdnProfile.DefinitionThe entirety of a CDN profile definition.static interfaceCdnProfile.DefinitionStagesGrouping of CDN profile definition stages.static interfaceCdnProfile.UpdateThe template for an update operation, containing all the settings that can be modified.static interfaceCdnProfile.UpdateStagesGrouping of CDN manager update stages.-
Nested classes/interfaces inherited from interface com.azure.resourcemanager.resources.fluentcore.arm.models.Resource
Resource.DefinitionWithRegion<T extends Object>, Resource.DefinitionWithTags<T extends Object>, Resource.UpdateWithTags<T extends Object>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CheckNameAvailabilityResultcheckEndpointNameAvailability(String name)Checks the availability of an endpoint name without creating the CDN endpoint.Mono<CheckNameAvailabilityResult>checkEndpointNameAvailabilityAsync(String name)Checks the availability of an endpoint name without creating the CDN endpoint asynchronously.Map<String,CdnEndpoint>endpoints()Gets latest endpoints by sending http request.StringgenerateSsoUri()Generates a dynamic SSO URI used to sign in to the CDN supplemental portal used for advanced management tasks.Mono<String>generateSsoUriAsync()Asynchronously generates a dynamic SSO URI used to sign into the CDN supplemental portal used for advanced management tasks.booleanisPremiumVerizon()com.azure.core.http.rest.PagedIterable<ResourceUsage>listResourceUsage()voidloadEndpointContent(String endpointName, Set<String> contentPaths)Forcibly pre-loads CDN endpoint content in the CDN profile.Mono<Void>loadEndpointContentAsync(String endpointName, Set<String> contentPaths)Forcibly pre-loads CDN endpoint content in the CDN profile asynchronously.voidpurgeEndpointContent(String endpointName, Set<String> contentPaths)Forcibly purges CDN endpoint content in the CDN profile.Mono<Void>purgeEndpointContentAsync(String endpointName, Set<String> contentPaths)Forcibly purges CDN endpoint content in the CDN profile asynchronously.StringresourceState()Skusku()voidstartEndpoint(String endpointName)Starts a stopped CDN endpoint.Mono<Void>startEndpointAsync(String endpointName)Starts a stopped CDN endpoint asynchronously.voidstopEndpoint(String endpointName)Stops a running CDN endpoint.Mono<Void>stopEndpointAsync(String endpointName)Stops a running CDN endpoint asynchronously.CustomDomainValidationResultvalidateEndpointCustomDomain(String endpointName, String hostName)Validates a custom domain mapping to ensure it maps to the correct CNAME in DNS in current profile.Mono<CustomDomainValidationResult>validateEndpointCustomDomainAsync(String endpointName, String hostName)Validates a custom domain mapping to ensure it maps to the correct CNAME in DNS in current profile asynchronously.-
Methods inherited from interface com.azure.resourcemanager.resources.fluentcore.model.HasInnerModel
innerModel
-
Methods inherited from interface com.azure.resourcemanager.resources.fluentcore.arm.models.HasManager
manager
-
Methods inherited from interface com.azure.resourcemanager.resources.fluentcore.arm.models.HasName
name
-
Methods inherited from interface com.azure.resourcemanager.resources.fluentcore.arm.models.HasResourceGroup
resourceGroupName
-
Methods inherited from interface com.azure.resourcemanager.resources.fluentcore.model.Refreshable
refresh, refreshAsync
-
Methods inherited from interface com.azure.resourcemanager.resources.fluentcore.arm.models.Resource
region, regionName, tags, type
-
-
-
-
Method Detail
-
sku
Sku sku()
- Returns:
- the SKU of the CDN profile
-
resourceState
String resourceState()
- Returns:
- CDN profile state
-
endpoints
Map<String,CdnEndpoint> endpoints()
Gets latest endpoints by sending http request.- Returns:
- endpoints in the CDN manager profile, indexed by name
-
generateSsoUri
String generateSsoUri()
Generates a dynamic SSO URI used to sign in to the CDN supplemental portal used for advanced management tasks.- Returns:
- URI used to login to the third party web portal
-
generateSsoUriAsync
Mono<String> generateSsoUriAsync()
Asynchronously generates a dynamic SSO URI used to sign into the CDN supplemental portal used for advanced management tasks.- Returns:
- a representation of the deferred computation of this call
-
startEndpoint
void startEndpoint(String endpointName)
Starts a stopped CDN endpoint.- Parameters:
endpointName- a name of an endpoint under the profile
-
startEndpointAsync
Mono<Void> startEndpointAsync(String endpointName)
Starts a stopped CDN endpoint asynchronously.- Parameters:
endpointName- a name of an endpoint under the profile- Returns:
- a representation of the deferred computation of this call
-
stopEndpoint
void stopEndpoint(String endpointName)
Stops a running CDN endpoint.- Parameters:
endpointName- a name of an endpoint under the profile
-
stopEndpointAsync
Mono<Void> stopEndpointAsync(String endpointName)
Stops a running CDN endpoint asynchronously.- Parameters:
endpointName- a name of an endpoint under the profile- Returns:
- a representation of the deferred computation of this call
-
purgeEndpointContent
void purgeEndpointContent(String endpointName, Set<String> contentPaths)
Forcibly purges CDN endpoint content in the CDN profile.- Parameters:
endpointName- a name of the endpoint under the profilecontentPaths- the paths to the content to be purged, which can be file paths or directory wild cards
-
purgeEndpointContentAsync
Mono<Void> purgeEndpointContentAsync(String endpointName, Set<String> contentPaths)
Forcibly purges CDN endpoint content in the CDN profile asynchronously.- Parameters:
endpointName- a name of the endpoint under the profilecontentPaths- 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
-
loadEndpointContent
void loadEndpointContent(String endpointName, Set<String> contentPaths)
Forcibly pre-loads CDN endpoint content in the CDN profile.Note, this is Available for Verizon Profiles only.
- Parameters:
endpointName- a name of the endpoint under the profilecontentPaths- the paths to the content to be purged, which can be file paths or directory wild cards
-
loadEndpointContentAsync
Mono<Void> loadEndpointContentAsync(String endpointName, Set<String> contentPaths)
Forcibly pre-loads CDN endpoint content in the CDN profile asynchronously.Note, this is Available for Verizon Profiles only.
- Parameters:
endpointName- a name of the endpoint under the profilecontentPaths- 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
-
validateEndpointCustomDomain
CustomDomainValidationResult validateEndpointCustomDomain(String endpointName, String hostName)
Validates a custom domain mapping to ensure it maps to the correct CNAME in DNS in current profile.- Parameters:
endpointName- a name of the endpoint under the profilehostName- the host name of the custom domain, which must be a domain name- Returns:
- CustomDomainValidationResult object if successful
-
validateEndpointCustomDomainAsync
Mono<CustomDomainValidationResult> validateEndpointCustomDomainAsync(String endpointName, String hostName)
Validates a custom domain mapping to ensure it maps to the correct CNAME in DNS in current profile asynchronously.- Parameters:
endpointName- a name of the endpoint under the profilehostName- the host name of the custom domain, which must be a domain name- Returns:
- the Observable to CustomDomainValidationResult object if successful
-
checkEndpointNameAvailability
CheckNameAvailabilityResult checkEndpointNameAvailability(String name)
Checks the availability of an endpoint name without creating the CDN endpoint.- Parameters:
name- the endpoint resource name to validate- Returns:
- the result if successful.
-
checkEndpointNameAvailabilityAsync
Mono<CheckNameAvailabilityResult> checkEndpointNameAvailabilityAsync(String name)
Checks the availability of an endpoint name without creating the CDN endpoint asynchronously.- Parameters:
name- the endpoint resource name to validate.- Returns:
- a representation of the deferred computation of this call
-
isPremiumVerizon
boolean isPremiumVerizon()
- Returns:
- true if this CDN profile's SKU is of Premium Verizon, else false.
-
listResourceUsage
com.azure.core.http.rest.PagedIterable<ResourceUsage> listResourceUsage()
- Returns:
- quotas and actual usages of endpoints under the current CDN profile
-
-