> Discover all available pages from the documentation index: https://mastra.zisheng.pro/ko/llms.txt # 마스트라.getGateway() 등록 키(Mastra에 게이트웨이를 추가할 때 사용되는 키)로 게이트웨이를 검색합니다. ## 사용예 ```typescript import { Mastra } from '@mastra/core' const mastra = new Mastra({ gateways: { myGateway: new MyCustomGateway(), }, }) const gateway = mastra.getGateway('myGateway') console.log(gateway.name) // 'My Custom Gateway' ``` ## 매개변수 **key** (`string`): 게이트웨이의 등록 키 ## 보고 **gateway** (`MastraModelGateway`): 게이트웨이 인스턴스 ## 던지기 지정된 키를 사용하는 게이트웨이가 없으면 오류가 발생합니다. ## 관련된 - [Mastra.getGatewayById()](https://mastra.zisheng.pro/ko/reference/core/getGatewayById): ID로 게이트웨이 가져오기 - [Mastra.listGateways()](https://mastra.zisheng.pro/ko/reference/core/listGateways): 모든 게이트웨이 나열 - [마스트라.추가게이트웨이()](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): 커스텀 게이트웨이 생성