Data.Cloud.AzureAPI.TAzureTableService.SetTableACL

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function SetTableACL(const ATableName: string; const ASignedIdentifierId: string; const AAccessPolicy: TPolicy;  const AClientRequestID: string; const AResponseInfo: TCloudResponseInfo): Boolean; overload;
function SetTableACL(const ATableName: string; ASignedIdentifiers: TArray<TSignedIdentifier>;  const AClientRequestID: string; const AResponseInfo: TCloudResponseInfo): Boolean; overload;

C++

bool __fastcall SetTableACL(const System::UnicodeString ATableName, const System::UnicodeString ASignedIdentifierId, TPolicy* const AAccessPolicy, const System::UnicodeString AClientRequestID, Data::Cloud::Cloudapi::TCloudResponseInfo* const AResponseInfo)/* overload */;
bool __fastcall SetTableACL(const System::UnicodeString ATableName, System::DynamicArray<TSignedIdentifier*> ASignedIdentifiers, const System::UnicodeString AClientRequestID, Data::Cloud::Cloudapi::TCloudResponseInfo* const AResponseInfo)/* overload */;

Properties

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

Description

Sets the access policies stored for the specified table that you may use with shared access signatures, and returns True on success or False otherwise.

Note: When you establish a stored access policy on a table, it may take up to 30 seconds to take effect. During this interval, a shared access signature that is associated with the stored access policy fails with status code 403 (Forbidden), until the access policy becomes active.

SetTableACL receives the following parameters:

  • ATableName is the name of the target table.
  • You may specify either a single policy or several policies:
    • To specify a single access policy use the following parameters:
      • ASignedIdentifierId is a string that uniquely identifies the stored access policy.
      • AAccessPolicy is the access policy to store for the table.
    • To specify an array of access policies and their identifiers use the ASignedIdentifiers parameter.
  • AClientRequestID is an optional string that uniquely identifies your client. This value is used for storage analytics.
  • AResponseInfo is an optional instance of TCloudResponseInfo to store the information of the response. Use a nil value if you do not need the information of the response.

See Also