Options
All
  • Public
  • Public/Protected
  • All
Menu

Class TableServiceClient

Package version

A TableServiceClient represents a Client to the Azure Tables service allowing you to perform operations on the tables and the entities.

Hierarchy

  • TableServiceClient

Index

Constructors

constructor

Methods

createTable

deleteTable

  • deleteTable(tableName: string, options?: DeleteTableOptions): Promise<DeleteTableResponse>
  • Operation permanently deletes the specified table.

    Parameters

    • tableName: string

      The name of the table.

    • Default value options: DeleteTableOptions = {}

      The options parameters.

    Returns Promise<DeleteTableResponse>

getAccessPolicy

  • getAccessPolicy(tableName: string, options?: GetAccessPolicyOptions): Promise<GetAccessPolicyResponse>
  • Retrieves details about any stored access policies specified on the table that may be used with Shared Access Signatures.

    Parameters

    • tableName: string

      The name of the table.

    • Default value options: GetAccessPolicyOptions = {}

      The options parameters.

    Returns Promise<GetAccessPolicyResponse>

getProperties

  • getProperties(options?: GetPropertiesOptions): Promise<GetPropertiesResponse>
  • Gets the properties of an account's Table service, including properties for Analytics and CORS (Cross-Origin Resource Sharing) rules.

    Parameters

    • Default value options: GetPropertiesOptions = {}

      The options parameters.

    Returns Promise<GetPropertiesResponse>

getStatistics

  • getStatistics(options?: GetStatisticsOptions): Promise<GetStatisticsResponse>
  • Retrieves statistics related to replication for the Table service. It is only available on the secondary location endpoint when read-access geo-redundant replication is enabled for the account.

    Parameters

    • Default value options: GetStatisticsOptions = {}

      The options parameters.

    Returns Promise<GetStatisticsResponse>

listTables

setAccessPolicy

  • setAccessPolicy(tableName: string, options?: SetAccessPolicyOptions): Promise<SetAccessPolicyResponse>
  • Sets stored access policies for the table that may be used with Shared Access Signatures.

    Parameters

    • tableName: string

      The name of the table.

    • Default value options: SetAccessPolicyOptions = {}

      The options parameters.

    Returns Promise<SetAccessPolicyResponse>

setProperties

  • setProperties(properties: ServiceProperties, options?: SetPropertiesOptions): Promise<SetPropertiesResponse>
  • Sets properties for an account's Table service endpoint, including properties for Analytics and CORS (Cross-Origin Resource Sharing) rules.

    Parameters

    • properties: ServiceProperties

      The Table Service properties.

    • Default value options: SetPropertiesOptions = {}

      The options parameters.

    Returns Promise<SetPropertiesResponse>

Static fromConnectionString

  • Creates an instance of TableServiceClient from connection string.

    Parameters

    • connectionString: string

      Account connection string or a SAS connection string of an Azure storage account. [ Note - Account connection string can only be used in NODE.JS runtime. ] Account connection string example - DefaultEndpointsProtocol=https;AccountName=myaccount;AccountKey=accountKey;EndpointSuffix=core.windows.net SAS connection string example - BlobEndpoint=https://myaccount.table.core.windows.net/;QueueEndpoint=https://myaccount.queue.core.windows.net/;FileEndpoint=https://myaccount.file.core.windows.net/;TableEndpoint=https://myaccount.table.core.windows.net/;SharedAccessSignature=sasString

    • Optional options: TableServiceClientOptions

    Returns TableServiceClient

    A new TableServiceClient from the given connection string.

Generated using TypeDoc