Data.Cloud.AzureAPI.TAzureBlobService.SetContainerACL

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function SetContainerACL(ContainerName: string;  const SignedIdentifierId: string; AccessPolicy: TAccessPolicy; PublicAccess: TBlobPublicAccess = bpaContainer; ResponseInfo: TCloudResponseInfo = nil): Boolean; overload;
function SetContainerACL(ContainerName: string;  SignedIdentifiers: TList<TSignedIdentifier>; PublicAccess: TBlobPublicAccess = bpaContainer; ResponseInfo: TCloudResponseInfo = nil): Boolean; overload;

C++

bool __fastcall SetContainerACL(System::UnicodeString ContainerName, const System::UnicodeString SignedIdentifierId, const TAccessPolicy &AccessPolicy, TBlobPublicAccess PublicAccess = (TBlobPublicAccess)(0x1), Data::Cloud::Cloudapi::TCloudResponseInfo* ResponseInfo = (Data::Cloud::Cloudapi::TCloudResponseInfo*)(0x0))/* overload */;
bool __fastcall SetContainerACL(System::UnicodeString ContainerName, System::Generics::Collections::TList__1<TSignedIdentifier*>* SignedIdentifiers, TBlobPublicAccess PublicAccess = (TBlobPublicAccess)(0x1), 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

Adds the signed identifier or updates it with the ID given for the specified container.

SetContainerACL is used to add the signed identifier or to update it with the ID given for the specified container.

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

Parameter Description

ContainerName

The name of the container to get the permissions for.

SignedIdentifierId

The unique ID of the single signed identifier to add/update.

AccessPolicy

The signed identifier's access policy.

PublicAccess

The value to set as the container's public access. Defaults to container.

ResponseInfo

The optional class for storing response info into.

Warning: When calling this function, the existing permissions are replaced. To update the container's permissions, call GetContainerACL to retrieve all access policies associated with the container, change the access policy that you want, then call SetContainerACL with the complete list of TSignedIdentifier to perform the update.


See Also