# EntraIdCustomApi

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

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.
