FrontDoorEndpointResource.PurgeContent Method
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.
Removes a content from AzureFrontDoor.
- Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/afdEndpoints/{endpointName}/purge
- Operation Id: FrontDoorEndpoints_PurgeContent
- Default Api Version: 2024-02-01
- Resource: FrontDoorEndpointResource
public virtual Azure.ResourceManager.ArmOperation PurgeContent (Azure.WaitUntil waitUntil, Azure.ResourceManager.Cdn.Models.FrontDoorPurgeContent content, System.Threading.CancellationToken cancellationToken = default);
abstract member PurgeContent : Azure.WaitUntil * Azure.ResourceManager.Cdn.Models.FrontDoorPurgeContent * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation
override this.PurgeContent : Azure.WaitUntil * Azure.ResourceManager.Cdn.Models.FrontDoorPurgeContent * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation
Public Overridable Function PurgeContent (waitUntil As WaitUntil, content As FrontDoorPurgeContent, Optional cancellationToken As CancellationToken = Nothing) As ArmOperation
Parameters
- waitUntil
- WaitUntil
Completed if the method should wait to return until the long-running operation has completed on the service; Started if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.
- content
- FrontDoorPurgeContent
The list of paths to the content and the list of linked domains to be purged. Path can be a full URL, e.g. '/pictures/city.png' which removes a single file, or a directory with a wildcard, e.g. '/pictures/*' which removes all folders and files in the directory.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
Exceptions
content
is null.
Applies to
Azure SDK for .NET