addApiWithoutTarget

Method
📦 Aspire.Hosting.Azure.ApiManagement v17.0.0-preview.1.26567.5
interface AzureApiManagementResource {
// ... omitted for brevity
addApiWithoutTarget(
name: string,
path: string,
displayName?: string,
subscriptionRequired?: boolean,
apiName?: string): AzureApiManagementApiResource;
}

Signature

methodaddApiWithoutTargetbuilder
Adds an API whose backend is configured separately.
addApiWithoutTarget(
name: string,
path: string,
displayName?: string,
subscriptionRequired?: boolean,
apiName?: string): AzureApiManagementApiResource
namestringThe globally unique Aspire resource name and default physical API name.
pathstringThe public path beneath the API Management gateway hostname.
displayNamestringoptionalThe API display name. The resource name is used when omitted.
subscriptionRequiredbooleanoptional= TrueWhether callers must provide an API Management subscription key. The default is `true`.
apiNamestringoptionalThe physical API identifier in API Management. The Aspire resource name is used when omitted.
AzureApiManagementApiResource

Applies to

This method applies to the following types: