TableResources interface

Interface representing a TableResources.

Methods

beginCreateUpdateTable(string, string, string, TableCreateUpdateParameters, TableResourcesCreateUpdateTableOptionalParams)

Create or update an Azure Cosmos DB Table

beginCreateUpdateTableAndWait(string, string, string, TableCreateUpdateParameters, TableResourcesCreateUpdateTableOptionalParams)

Create or update an Azure Cosmos DB Table

beginDeleteTable(string, string, string, TableResourcesDeleteTableOptionalParams)

Deletes an existing Azure Cosmos DB Table.

beginDeleteTableAndWait(string, string, string, TableResourcesDeleteTableOptionalParams)

Deletes an existing Azure Cosmos DB Table.

beginMigrateTableToAutoscale(string, string, string, TableResourcesMigrateTableToAutoscaleOptionalParams)

Migrate an Azure Cosmos DB Table from manual throughput to autoscale

beginMigrateTableToAutoscaleAndWait(string, string, string, TableResourcesMigrateTableToAutoscaleOptionalParams)

Migrate an Azure Cosmos DB Table from manual throughput to autoscale

beginMigrateTableToManualThroughput(string, string, string, TableResourcesMigrateTableToManualThroughputOptionalParams)

Migrate an Azure Cosmos DB Table from autoscale to manual throughput

beginMigrateTableToManualThroughputAndWait(string, string, string, TableResourcesMigrateTableToManualThroughputOptionalParams)

Migrate an Azure Cosmos DB Table from autoscale to manual throughput

beginRetrieveContinuousBackupInformation(string, string, string, ContinuousBackupRestoreLocation, TableResourcesRetrieveContinuousBackupInformationOptionalParams)

Retrieves continuous backup information for a table.

beginRetrieveContinuousBackupInformationAndWait(string, string, string, ContinuousBackupRestoreLocation, TableResourcesRetrieveContinuousBackupInformationOptionalParams)

Retrieves continuous backup information for a table.

beginUpdateTableThroughput(string, string, string, ThroughputSettingsUpdateParameters, TableResourcesUpdateTableThroughputOptionalParams)

Update RUs per second of an Azure Cosmos DB Table

beginUpdateTableThroughputAndWait(string, string, string, ThroughputSettingsUpdateParameters, TableResourcesUpdateTableThroughputOptionalParams)

Update RUs per second of an Azure Cosmos DB Table

getTable(string, string, string, TableResourcesGetTableOptionalParams)

Gets the Tables under an existing Azure Cosmos DB database account with the provided name.

getTableThroughput(string, string, string, TableResourcesGetTableThroughputOptionalParams)

Gets the RUs per second of the Table under an existing Azure Cosmos DB database account with the provided name.

listTables(string, string, TableResourcesListTablesOptionalParams)

Lists the Tables under an existing Azure Cosmos DB database account.

Method Details

beginCreateUpdateTable(string, string, string, TableCreateUpdateParameters, TableResourcesCreateUpdateTableOptionalParams)

Create or update an Azure Cosmos DB Table

function beginCreateUpdateTable(resourceGroupName: string, accountName: string, tableName: string, createUpdateTableParameters: TableCreateUpdateParameters, options?: TableResourcesCreateUpdateTableOptionalParams): Promise<SimplePollerLike<OperationState<TableGetResults>, TableGetResults>>

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

accountName

string

Cosmos DB database account name.

tableName

string

Cosmos DB table name.

createUpdateTableParameters
TableCreateUpdateParameters

The parameters to provide for the current Table.

options
TableResourcesCreateUpdateTableOptionalParams

The options parameters.

Returns

beginCreateUpdateTableAndWait(string, string, string, TableCreateUpdateParameters, TableResourcesCreateUpdateTableOptionalParams)

Create or update an Azure Cosmos DB Table

function beginCreateUpdateTableAndWait(resourceGroupName: string, accountName: string, tableName: string, createUpdateTableParameters: TableCreateUpdateParameters, options?: TableResourcesCreateUpdateTableOptionalParams): Promise<TableGetResults>

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

accountName

string

Cosmos DB database account name.

tableName

string

Cosmos DB table name.

createUpdateTableParameters
TableCreateUpdateParameters

The parameters to provide for the current Table.

options
TableResourcesCreateUpdateTableOptionalParams

The options parameters.

Returns

Promise<TableGetResults>

beginDeleteTable(string, string, string, TableResourcesDeleteTableOptionalParams)

Deletes an existing Azure Cosmos DB Table.

function beginDeleteTable(resourceGroupName: string, accountName: string, tableName: string, options?: TableResourcesDeleteTableOptionalParams): Promise<SimplePollerLike<OperationState<TableResourcesDeleteTableHeaders>, TableResourcesDeleteTableHeaders>>

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

accountName

string

Cosmos DB database account name.

tableName

string

Cosmos DB table name.

options
TableResourcesDeleteTableOptionalParams

The options parameters.

Returns

beginDeleteTableAndWait(string, string, string, TableResourcesDeleteTableOptionalParams)

Deletes an existing Azure Cosmos DB Table.

function beginDeleteTableAndWait(resourceGroupName: string, accountName: string, tableName: string, options?: TableResourcesDeleteTableOptionalParams): Promise<TableResourcesDeleteTableHeaders>

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

accountName

string

Cosmos DB database account name.

tableName

string

Cosmos DB table name.

options
TableResourcesDeleteTableOptionalParams

The options parameters.

Returns

beginMigrateTableToAutoscale(string, string, string, TableResourcesMigrateTableToAutoscaleOptionalParams)

Migrate an Azure Cosmos DB Table from manual throughput to autoscale

function beginMigrateTableToAutoscale(resourceGroupName: string, accountName: string, tableName: string, options?: TableResourcesMigrateTableToAutoscaleOptionalParams): Promise<SimplePollerLike<OperationState<ThroughputSettingsGetResults>, ThroughputSettingsGetResults>>

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

accountName

string

Cosmos DB database account name.

tableName

string

Cosmos DB table name.

options
TableResourcesMigrateTableToAutoscaleOptionalParams

The options parameters.

Returns

beginMigrateTableToAutoscaleAndWait(string, string, string, TableResourcesMigrateTableToAutoscaleOptionalParams)

Migrate an Azure Cosmos DB Table from manual throughput to autoscale

function beginMigrateTableToAutoscaleAndWait(resourceGroupName: string, accountName: string, tableName: string, options?: TableResourcesMigrateTableToAutoscaleOptionalParams): Promise<ThroughputSettingsGetResults>

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

accountName

string

Cosmos DB database account name.

tableName

string

Cosmos DB table name.

options
TableResourcesMigrateTableToAutoscaleOptionalParams

The options parameters.

Returns

beginMigrateTableToManualThroughput(string, string, string, TableResourcesMigrateTableToManualThroughputOptionalParams)

Migrate an Azure Cosmos DB Table from autoscale to manual throughput

function beginMigrateTableToManualThroughput(resourceGroupName: string, accountName: string, tableName: string, options?: TableResourcesMigrateTableToManualThroughputOptionalParams): Promise<SimplePollerLike<OperationState<ThroughputSettingsGetResults>, ThroughputSettingsGetResults>>

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

accountName

string

Cosmos DB database account name.

tableName

string

Cosmos DB table name.

Returns

beginMigrateTableToManualThroughputAndWait(string, string, string, TableResourcesMigrateTableToManualThroughputOptionalParams)

Migrate an Azure Cosmos DB Table from autoscale to manual throughput

function beginMigrateTableToManualThroughputAndWait(resourceGroupName: string, accountName: string, tableName: string, options?: TableResourcesMigrateTableToManualThroughputOptionalParams): Promise<ThroughputSettingsGetResults>

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

accountName

string

Cosmos DB database account name.

tableName

string

Cosmos DB table name.

Returns

beginRetrieveContinuousBackupInformation(string, string, string, ContinuousBackupRestoreLocation, TableResourcesRetrieveContinuousBackupInformationOptionalParams)

Retrieves continuous backup information for a table.

function beginRetrieveContinuousBackupInformation(resourceGroupName: string, accountName: string, tableName: string, location: ContinuousBackupRestoreLocation, options?: TableResourcesRetrieveContinuousBackupInformationOptionalParams): Promise<SimplePollerLike<OperationState<BackupInformation>, BackupInformation>>

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

accountName

string

Cosmos DB database account name.

tableName

string

Cosmos DB table name.

location
ContinuousBackupRestoreLocation

The name of the continuous backup restore location.

Returns

beginRetrieveContinuousBackupInformationAndWait(string, string, string, ContinuousBackupRestoreLocation, TableResourcesRetrieveContinuousBackupInformationOptionalParams)

Retrieves continuous backup information for a table.

function beginRetrieveContinuousBackupInformationAndWait(resourceGroupName: string, accountName: string, tableName: string, location: ContinuousBackupRestoreLocation, options?: TableResourcesRetrieveContinuousBackupInformationOptionalParams): Promise<BackupInformation>

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

accountName

string

Cosmos DB database account name.

tableName

string

Cosmos DB table name.

location
ContinuousBackupRestoreLocation

The name of the continuous backup restore location.

Returns

beginUpdateTableThroughput(string, string, string, ThroughputSettingsUpdateParameters, TableResourcesUpdateTableThroughputOptionalParams)

Update RUs per second of an Azure Cosmos DB Table

function beginUpdateTableThroughput(resourceGroupName: string, accountName: string, tableName: string, updateThroughputParameters: ThroughputSettingsUpdateParameters, options?: TableResourcesUpdateTableThroughputOptionalParams): Promise<SimplePollerLike<OperationState<ThroughputSettingsGetResults>, ThroughputSettingsGetResults>>

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

accountName

string

Cosmos DB database account name.

tableName

string

Cosmos DB table name.

updateThroughputParameters
ThroughputSettingsUpdateParameters

The parameters to provide for the RUs per second of the current Table.

options
TableResourcesUpdateTableThroughputOptionalParams

The options parameters.

Returns

beginUpdateTableThroughputAndWait(string, string, string, ThroughputSettingsUpdateParameters, TableResourcesUpdateTableThroughputOptionalParams)

Update RUs per second of an Azure Cosmos DB Table

function beginUpdateTableThroughputAndWait(resourceGroupName: string, accountName: string, tableName: string, updateThroughputParameters: ThroughputSettingsUpdateParameters, options?: TableResourcesUpdateTableThroughputOptionalParams): Promise<ThroughputSettingsGetResults>

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

accountName

string

Cosmos DB database account name.

tableName

string

Cosmos DB table name.

updateThroughputParameters
ThroughputSettingsUpdateParameters

The parameters to provide for the RUs per second of the current Table.

options
TableResourcesUpdateTableThroughputOptionalParams

The options parameters.

Returns

getTable(string, string, string, TableResourcesGetTableOptionalParams)

Gets the Tables under an existing Azure Cosmos DB database account with the provided name.

function getTable(resourceGroupName: string, accountName: string, tableName: string, options?: TableResourcesGetTableOptionalParams): Promise<TableGetResults>

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

accountName

string

Cosmos DB database account name.

tableName

string

Cosmos DB table name.

options
TableResourcesGetTableOptionalParams

The options parameters.

Returns

Promise<TableGetResults>

getTableThroughput(string, string, string, TableResourcesGetTableThroughputOptionalParams)

Gets the RUs per second of the Table under an existing Azure Cosmos DB database account with the provided name.

function getTableThroughput(resourceGroupName: string, accountName: string, tableName: string, options?: TableResourcesGetTableThroughputOptionalParams): Promise<ThroughputSettingsGetResults>

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

accountName

string

Cosmos DB database account name.

tableName

string

Cosmos DB table name.

options
TableResourcesGetTableThroughputOptionalParams

The options parameters.

Returns

listTables(string, string, TableResourcesListTablesOptionalParams)

Lists the Tables under an existing Azure Cosmos DB database account.

function listTables(resourceGroupName: string, accountName: string, options?: TableResourcesListTablesOptionalParams): PagedAsyncIterableIterator<TableGetResults, TableGetResults[], PageSettings>

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

accountName

string

Cosmos DB database account name.

options
TableResourcesListTablesOptionalParams

The options parameters.

Returns