--- title: "テーブルインスタンスの取得" url: https://docs.catalyst.zoho.com/ja/sdk/nodejs/v2/cloud-scale/data-store/get-table-instance/ description: "このページでは、NodeJS アプリケーションの Data Store のテーブルから tableID と名前を使用してテーブルインスタンスを取得する方法について、サンプルコードとともに説明します。" last_updated: 2026-02-23T12:39:41Z service: Cloud Scale type: general related_links: - name: "Data Store" url: /ja/cloud-scale/help/data-store/introduction --- # テーブルインスタンスの取得 以下のメソッドでテーブルの参照を作成できます。これらのメソッドはサーバー側の呼び出しを実行しません。以下のコードスニペットで使用している datastore の参照は、[コンポーネントインスタンス](https://docs.catalyst.zoho.com/ja/sdk/nodejs/v2/cloud-scale/data-store/get-component-instance)です。 ### テーブル ID を使用したテーブルインスタンスの取得 `getTable()` メソッドを使用して、テーブル ID を参照することでテーブルの参照を作成できます。 ```javascript //Get a Single Table without details using table ID let datastore = app.datastore(); let table = datastore.table(1510000000110121); ``` ### テーブル名を使用したテーブルインスタンスの取得 または、`getTable()` メソッドを使用して、テーブル名を参照することでテーブルの参照を作成できます。 これらのメソッドには Promise は含まれず、テーブルのインスタンスのみが返されます。 ```javascript //Get a Single Table without details using table name let datastore = app.datastore(); let table = datastore.table('SampleTable'); ```