Disable Table
void disableTable(String tableName)
Function
When a table becomes offline, the table state is changed from ENABLED to DISABLED; it cannot be read and written
Method parameters
1.tableName : String : required
Method return value
void
Exception error code
INTERNAL_ERROR(1): Server exception
ACCESS_DENIED(4): No permission to disable table
RESOURCE_NOT_FOUND(9): Disabled table does not exist
RESOURCE_UNAVAILABLE(11) : There are other DDL operations under this account. Does not allow DDL operations at the same time
Limitation
Only the table owner can disable table
Only when the table is ENABLED can this operation be performed
Example
With the Example table, the sample code for disabling table is provided below
$tableName = 'php-note';
$adminClient->disableTable($tableName);