> Discover all available pages from the documentation index: https://mastra.zisheng.pro/ko/llms.txt # Mastra.listGateways() 등록 키로 인덱싱된 모든 등록된 게이트웨이의 레코드를 반환합니다. ## 사용예 ```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`): 등록 키로 인덱싱된 게이트웨이 인스턴스의 레코드 ## 관련된 - [마스트라.getGateway()](https://mastra.zisheng.pro/ko/reference/core/getGateway): 등록키로 게이트웨이 받기 - [Mastra.getGatewayById()](https://mastra.zisheng.pro/ko/reference/core/getGatewayById): ID로 게이트웨이 가져오기 - [마스트라.추가게이트웨이()](https://mastra.zisheng.pro/ko/reference/core/addGateway): 게이트웨이 추가 - [마스트라Model게이트웨이](https://mastra.zisheng.pro/ko/reference/core/mastra-model-gateway): 게이트웨이 기본 클래스 - [사용자 정의 게이트웨이 가이드](https://mastra.zisheng.pro/ko/models/gateways/custom-gateways): 커스텀 게이트웨이 생성