Data.Cloud.AzureAPI.TAzureBlobService.CopySnapshotToBlob

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function CopySnapshotToBlob(TargetContainerName, TargetBlobName, SourceContainerName, SourceBlobName: string;  const SourceSnapshot: string; Metadata: TStrings = nil; ResponseInfo: TCloudResponseInfo = nil): Boolean; overload;
function CopySnapshotToBlob(TargetContainerName, TargetBlobName, SourceContainerName, SourceBlobName: string;  const SourceSnapshot: string; CopyConditionals: TBlobActionConditional; Metadata: TStrings = nil; ResponseInfo: TCloudResponseInfo = nil): Boolean; overload;

C++

bool __fastcall CopySnapshotToBlob(System::UnicodeString TargetContainerName, System::UnicodeString TargetBlobName, System::UnicodeString SourceContainerName, System::UnicodeString SourceBlobName, const System::UnicodeString SourceSnapshot, System::Classes::TStrings* Metadata = (System::Classes::TStrings*)(0x0), Data::Cloud::Cloudapi::TCloudResponseInfo* ResponseInfo = (Data::Cloud::Cloudapi::TCloudResponseInfo*)(0x0))/* overload */;
bool __fastcall CopySnapshotToBlob(System::UnicodeString TargetContainerName, System::UnicodeString TargetBlobName, System::UnicodeString SourceContainerName, System::UnicodeString SourceBlobName, const System::UnicodeString SourceSnapshot, const TBlobActionConditional &CopyConditionals, System::Classes::TStrings* Metadata = (System::Classes::TStrings*)(0x0), Data::Cloud::Cloudapi::TCloudResponseInfo* ResponseInfo = (Data::Cloud::Cloudapi::TCloudResponseInfo*)(0x0))/* overload */;

Properties

Type Visibility Source Unit Parent
function public
Data.Cloud.AzureAPI.pas
Data.Cloud.AzureAPI.hpp
Data.Cloud.AzureAPI TAzureBlobService

Description

Copies the specified snapshot into the target blob location.

CopySnapshotToBlob copies the specified snapshot into the target blob location.

If a blob exists at the target location, the content will be replaced. If metadata is specified, then the target blob will have that metadata, otherwise, it will have the metadata that exists on the source snapshot.

There are two overloaded CopySnapshotToBlob methods. The following table describes the parameters:

Parameter Description

TargetContainerName

The container to put the copied blob into.

TargetBlobName

The name of the resulting blob.

SourceContainerName

The container the blob being copied is in.

SourceBlobName

The name of the blob owning the snapshot being copied.

SourceSnapshot

The blob's snapshot to copy.

CopyConditionals

The conditions to meet in order to perform the copying.

Metadata

The optional metadata to use on the target, instead of the source's.

ResponseInfo

The optional class for storing response info into.


The method returns True if the copying was successful, False otherwise.

See Also