AzureApiManagementResource.addOpenAIApi
Method
interface AzureApiManagementResource { // ... omitted for brevity addOpenAIApi( name: string, path: string, displayName?: string, subscriptionRequired?: boolean, apiName?: string): AzureApiManagementApiResource;}Signature
method
addOpenAIApi builderAdds an OpenAI-compatible API backed by an API Management load-balancing pool.
addOpenAIApi( name: string, path: string, displayName?: string, subscriptionRequired?: boolean, apiName?: string): AzureApiManagementApiResourceParameters
namestringThe globally unique Aspire resource name and default physical API name.pathstringThe public path beneath the API Management gateway hostname.displayName stringoptionalThe API display name. The resource name is used when omitted.subscriptionRequired booleanoptional= TrueWhether callers must provide an API Management subscription key. The default is `true`.apiName stringoptionalThe physical API identifier in API Management. The Aspire resource name is used when omitted.Returns
AzureApiManagementApiResource Defined on
This method is defined on the following type: