You can call the DescribeTable operation to query the schema information, reserved read throughput, and reserved write throughput of a table.

Method

        """
        Description: You can call this method to obtain the description of a table.
        ``table_name`` specifies the name of the table.
        Return value: the description of the table.
        ``describe_table_response`` indicates the description of the table, which is an instance of the ots2.metadata.DescribeTableResponse class.
		"""
		def describe_table(self, table_name):

Example

The following code provides an example of how to obtain the description of a table.

	try:
		describe_response = ots_client.describe_table('myTable')
		# If no exception is thrown, the operation is successful. Display the table information.
		print "describe table succeeded."
		print ('TableName: %s' % describe_response.table_meta.table_name)
		print ('PrimaryKey: %s' % describe_response.table_meta.schema_of_primary_key)
		print ('Reserved read throughput: %s' % describe_response.reserved_throughput_details.capacity_unit.read)
		print ('Reserved write throughput: %s' % describe_response.reserved_throughput_details.capacity_unit.write)
		print ('Last increase throughput time: %s' % describe_response.reserved_throughput_details.last_increase_time)
		print ('Last decrease throughput time: %s' % describe_response.reserved_throughput_details.last_decrease_time)
		print ('table options\'s time to live: %s' % describe_response.table_options.time_to_live)
		print ('table options\'s max version: %s' % describe_response.table_options.max_version)
		print ('table options\'s max_time_deviation: %s' % describe_response.table_options.max_time_deviation) 
	except Exception:
		# If an exception is thrown, the operation fails. Handle the exception.
		print "describe table failed."
Note You can obtain the full sample code at describeTable@GitHub.