# EntraIdCustomApi

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

Identifies an API that is not an Aspire resource by its application ID and application ID URI.

## Definition

```go
type EntraIdCustomApi struct {
    DisplayName   string  `json:"DisplayName"`
    ApplicationId string  `json:"ApplicationId"`
    ResourceUri   string  `json:"ResourceUri"`
    BaseUrl       *string `json:"BaseUrl"`
}
```

## Fields

- `DisplayName`: `string` -- Gets a name for the API used in diagnostics and as the name of its DownstreamApis entry (its letters and digits).
- `ApplicationId`: `string` -- Gets the API's application (client) ID as a GUID.
- `ResourceUri`: `string` -- Gets the API's application ID URI, the prefix of its scopes in token requests. It is not derived from the application ID because an API can use any URI.
- `BaseUrl`: `*string` `optional` -- Gets the API's root URL, which Aspire adds to the DownstreamApis entry as BaseUrl. When omitted, the caller must supply the address.
