BlobBaseClient.SyncCopyFromUri Method

Definition

The Copy Blob From URL operation copies a blob to a destination within the storage account synchronously for source blob sizes up to 256 MiB. This API is available starting in version 2018-03-28. The source for a Copy Blob From URL operation can be any committed block blob in any Azure storage account which is either public or authorized with a shared access signature.

The size of the source blob can be a maximum length of up to 256 MiB.

For more information, see Copy Blob From URL.

public virtual Azure.Response<Azure.Storage.Blobs.Models.BlobCopyInfo> SyncCopyFromUri (Uri source, Azure.Storage.Blobs.Models.BlobCopyFromUriOptions options = default, System.Threading.CancellationToken cancellationToken = default);
abstract member SyncCopyFromUri : Uri * Azure.Storage.Blobs.Models.BlobCopyFromUriOptions * System.Threading.CancellationToken -> Azure.Response<Azure.Storage.Blobs.Models.BlobCopyInfo>
override this.SyncCopyFromUri : Uri * Azure.Storage.Blobs.Models.BlobCopyFromUriOptions * System.Threading.CancellationToken -> Azure.Response<Azure.Storage.Blobs.Models.BlobCopyInfo>
Public Overridable Function SyncCopyFromUri (source As Uri, Optional options As BlobCopyFromUriOptions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Response(Of BlobCopyInfo)

Parameters

source
Uri

Required. Specifies the URL of the source blob. The value may be a URL of up to 2 KB in length that specifies a blob. The value should be URL-encoded as it would appear in a request URI. Source Blob Authentication If the size of the source blob is greater than 256 MiB, the request will fail with 409 (Conflict). The blob type of the source blob has to be block blob.

options
BlobCopyFromUriOptions

Optional parameters.

cancellationToken
CancellationToken

Optional CancellationToken to propagate notifications that the operation should be cancelled.

Returns

A Response<T> describing the state of the copy operation.

Remarks

A RequestFailedException will be thrown if a failure occurs.

Applies to