Azure APIM Developer Portal: hostname not showing for Self Hosted Gateways

Marco Curaba 20 Punti di reputazione
2024-02-05T09:05:56.97+00:00

Hello,

As summed up in the title, when trying the APIM Developer Portal for APIs configured with self-hosted gateways, an "hostname" text field appears with no value. We would expect it to be automatically handled by the Developer Portal, or at least havinga valid default value based on the informations on the gateways.

Is there a way to achieve this? Thanks in advance

{count} voti

Risposta accettata
  1. JananiRamesh-MSFT 22.121 Punti di reputazione
    2024-02-05T18:21:21.3466667+00:00

    Marco Curaba Thanks for reaching out. If an API has only SHG configured, hostname will be empty in the developer portal. If you have both managed and SHG configured for an API all the custom domain names will be listed in the drop down for hostname.

    You can have just the self-hosted gateway custom domain configured. And only that one will show. However, you need to associate managed gateway. Please note that self-hosted gateway is made for isolated scenarios, which is why developer portal is designed this way.

    please refer: https://stackoverflow.com/questions/72898329/apim-developer-portal-no-default-hostname

    Do let me know if you have any queries. Please 'Accept as answer' and ‘Upvote’ if it helped so that it can help others in the community looking for help on similar topics.

    1 persona ha trovato utile questa risposta.
    0 commenti Nessun commento

1 risposta aggiuntiva

Ordina per: Più utili
  1. Monica Caprio (Convergys International Europe) 805 Punti di reputazione Fornitore Microsoft
    2024-02-06T07:24:11.6666667+00:00

    Gentile Marco,

    Se per un'API è configurato solo SHG, il nome host sarà vuoto nel portale degli sviluppatori.

    Se hai gestito e configurato SHG per un'API, tutti i nomi di dominio personalizzati verranno elencati nel menu a discesa del nome host.

    È possibile configurare solo il dominio personalizzato del gateway self-hosted. E solo quello verrà mostrato. Tuttavia, è necessario associare il gateway gestito.

    Tieni presente che il gateway self-hosted è realizzato per scenari isolati, motivo per cui il portale per sviluppatori è progettato in questo modo.

    Puoi far riferimento a: https://stackoverflow.com/questions/72898329/apim-developer-portal-no-default-hostname

    Fammi sapere se hai qualche ulteriore necessità di assistenza. In altrimenti, se la risposta ti è stata di aiuto, per favore clicca su "Accetta come risposta" e "Vota" in modo che possa aiutare altri nella comunità in cerca di aiuto su argomenti simili.

    Ti auguro una piacevole giornata!

    Monica

    0 commenti Nessun commento