---
title: "Get Table Instance"
url: https://docs.catalyst.zoho.com/en/sdk/python/v1/cloud-scale/data-store/get-table-instance/
description: "This page describes the method to fetch the table instance using tableID and name from a table in the Data Store in your Python application with sample code snippets."
last_updated: 2025-03-28T12:54:49Z
service: Cloud Scale
type: general
related_links:
- name: "Data Store Help"
url: /en/cloud-scale/help/data-store/introduction
- name: "SDK Scopes"
url: /en/sdk/python/v1/sdk-scopes
---
# Get a Table Instance
A table reference can be created by referring to the predefined data store reference by passing either the tableID or table name as the parameter. The `datastore_service` reference used in the below code snippet is the component instance created earlier.
### Get the Table Instance using TableID
The `table_service` reference can be created by passing the tableID as a parameter to the `table()` method. To know more about the component instance `datastore_service` used below, please refer to [this help section](https://docs.catalyst.zoho.com/en/sdk/python/v1/cloud-scale/data-store/get-component-instance/).
**Parameters Used**
| Parameter Name |
Data Type |
Definition |
| `tableID` |
String |
A **Mandatory** parameter. Will hold the ID of the table. |
```python
#Get table instance using table ID
datastore_service = app.datastore()
table_service = datastore_service.table(5249000000011745)
```
### Get the Table Instance using Table Name
Alternatively, a table reference can be created by referring the tablename in the `table()` method. There is no explicit response involved in these methods and only the instance of the table is returned.
To know more about the component instance `datastore_service` used below, please refer to [this help section](https://docs.catalyst.zoho.com/en/sdk/python/v1/cloud-scale/data-store/get-component-instance/).
**Parameters Used**
| Parameter Name |
Data Type |
Definition |
| `table_name` |
`String` |
A **Mandatory** parameter. Will hold the name of the table. |
```python
#Get table instance using table name
datastore_service = app.datastore()
table_service = datastore_service.table("CITY")
```