Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

ResourceUrlAnnotation

Struct
📦 Aspire.Hosting v17.0.0

A URL that should be displayed for a resource.

type ResourceUrlAnnotation struct {
Url string `json:"Url"`
DisplayText *string `json:"DisplayText"`
Endpoint *EndpointReference `json:"Endpoint"`
DisplayOrder *float64 `json:"DisplayOrder"`
DisplayLocation UrlDisplayLocation `json:"DisplayLocation"`
}

Fields

Urlstring
The URL. When rendered as a link this will be used as the link target.
DisplayText*string
The name of the URL. When rendered as a link this will be used as the linked text.
Endpoint*EndpointReferenceoptional
The endpoint associated with this URL. Can be null if this URL is not associated with an endpoint.
DisplayOrder*float64optional
Gets or sets the display order of the URL. Higher values mean sort higher in the list.
DisplayLocationUrlDisplayLocation
Locations where this URL should be shown on the dashboard. Defaults to SummaryAndDetails.