Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

ResourceWithEndpoints.GetEndpoint

Method
📦 Aspire.Hosting v17.0.0
func (ResourceWithEndpoints) GetEndpoint(name string) EndpointReference

Signature

methodGetEndpoint
Gets an endpoint reference
GetEndpoint(name string) EndpointReference
namestringThe name of the endpoint.
EndpointReference

An EndpointReference that can be used to resolve the address of the endpoint after resource allocation has occurred.

Returns a handle; failures surface later via Err().

Defined on

A marker interface declares no methods of its own in Go. Its functions are declared on the concrete types they apply to.

Applies to

This function applies to the following types: