Aracılığıyla paylaş


CdnEndpointResource.LoadContentAsync Method

Definition

Pre-loads a content to CDN. Available for Verizon Profiles.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/endpoints/{endpointName}/load
  • Operation Id: CdnEndpoints_LoadContent
  • Default Api Version: 2024-02-01
  • Resource: CdnEndpointResource
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation> LoadContentAsync (Azure.WaitUntil waitUntil, Azure.ResourceManager.Cdn.Models.LoadContent content, System.Threading.CancellationToken cancellationToken = default);
abstract member LoadContentAsync : Azure.WaitUntil * Azure.ResourceManager.Cdn.Models.LoadContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation>
override this.LoadContentAsync : Azure.WaitUntil * Azure.ResourceManager.Cdn.Models.LoadContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation>
Public Overridable Function LoadContentAsync (waitUntil As WaitUntil, content As LoadContent, Optional cancellationToken As CancellationToken = Nothing) As Task(Of 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
LoadContent

The path to the content to be loaded. Path should be a full URL, e.g. ‘/pictures/city.png' which loads a single file.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

content is null.

Applies to