# ResourceUrlAnnotation

- Module: [Aspire.Hosting](/reference/api/go/aspire.hosting.md)
- Version: `17.0.0`
- Kind: `struct`
- Source: [GitHub](https://github.com/microsoft/aspire/tree/bcfa151cdca6d0a573f22d5d9c23f9c727cb3b2f)

A URL that should be displayed for a resource.

## Definition

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

## Fields

- `Url`: `string` -- 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`: [`*EndpointReference`](/reference/api/go/aspire.hosting/endpointreference.md) `optional` -- The endpoint associated with this URL. Can be `null` if this URL is not associated with an endpoint.
- `DisplayOrder`: `*float64` `optional` -- Gets or sets the display order of the URL. Higher values mean sort higher in the list.
- `DisplayLocation`: [`UrlDisplayLocation`](/reference/api/go/aspire.hosting/urldisplaylocation.md) -- Locations where this URL should be shown on the dashboard. Defaults to `SummaryAndDetails`.
