> Discover all available pages from the documentation index: https://mastra.zisheng.pro/ja/llms.txt # Mastra.listGateways() 登録キーでインデックス付けされた、登録済みのすべての Gateway のレコードを返します。 ## 使用例 ```typescript import { Mastra } from '@mastra/core' const mastra = new Mastra({ gateways: { myGateway: new MyCustomGateway(), anotherGateway: new AnotherGateway(), }, }) const gateways = mastra.listGateways() console.log(Object.keys(gateways)) // ['myGateway', 'anotherGateway'] // Iterate over all gateways for (const [key, gateway] of Object.entries(gateways)) { console.log(`${key}: ${gateway.name}`) } ``` ## パラメーター ありません。 ## 戻り値 **gateways** (`Record`): 登録キーでインデックス付けされた Gateway インスタンスのレコード ## 関連項目 - [Mastra.getGateway()](https://mastra.zisheng.pro/ja/reference/core/getGateway): 登録キーで Gateway を取得 - [Mastra.getGatewayById()](https://mastra.zisheng.pro/ja/reference/core/getGatewayById): ID で Gateway を取得 - [Mastra.addGateway()](https://mastra.zisheng.pro/ja/reference/core/addGateway): Gateway を追加 - [MastraModelGateway](https://mastra.zisheng.pro/ja/reference/core/mastra-model-gateway): Gateway の基底クラス - [カスタム Gateway ガイド](https://mastra.zisheng.pro/ja/models/gateways/custom-gateways): カスタム Gateway の作成方法