Azure APIとAzure Active Directoryを使用してAzure Application Insights REST APIを使用する適切な例はありますか?Azure Application Insights REST API
答えて
トップレベルのページで両方の方法、APIキーとAzureのAADの使用例があります:公開APIの形式を使用して
https://dev.applicationinsights.io/documentation/Authorization
:APIキー認証
https://api.applicationinsights.io/{api-version}/{app-id}/{query-path}?[query-parameters]
は、 https://dev.applicationinsights.io/documentation/Authorization/API-key-authentication
Azure APIフォーマットの使用:ユーザー認証
Azure API formatを使用している場合、承認は で行われ、Azure Active Directoryによって行われます。これを使用してユーザごとに 認証を行う場合は、特定の AAD authentication scenariosについて詳しく知ることができます。
AAD認証を使用する方法のための有益なリソースが Developer's Guide to Auth with Azure Resource Manager APIあり、そして このサイトはまた、AADに対する認証と ARMを経由してAPIコールを送信する 詳細を処理するuseful set of PowerShell cmdletsを持っています。これらは、Fiddlerセッションの対象となるセットを手早く取得して、 実際の呼び出しを表示し、ARMを介してAPIを呼び出すようにします(vs APIキーをAPIに直接送ります)。
たとえば、PowerShellには、このシーケンスは Analytics queryを実行し、JSONレスポンスをダンプするコマンド:
Connect-ARM Execute-ARMQuery -SubscriptionId {subscription-id} -HTTPVerb GET -Base "/subscriptions/{subscription-id}/resourcegroups/{resource-group-name}/providers/microsoft.insights/components/{ai-component-name}/api/query" -APIVersion "2014-12-01-preview" -Query "&query=requests|count" | ConvertTo-Json -Depth 99
nodejsで実行できますか?私は郵便配達人か何かのようなレストクライアントでそれをテストできますか? –
- 1. Azure Application Insightsアラートメール
- 2. Azure Application Insights
- 3. Application Insights REST API:無効なアプリケーションID
- 4. Azure Application Insights Analytics APIのページ結果
- 5. Azure Application Insights ARMテンプレートのアラートルール
- 6. Azure Application Insights - オブジェクト内の値
- 7. Azure Insights REST API - "InvalidFilterValueParameterArgument Nullパラメータ名:$ filter"
- 8. Azure Application Insights REST API(https://dev.applicationinsights.io)を使用してカスタムイベント/指標を読む
- 9. Application Insightsで認証AADを使用したREST API
- 10. Azure Application InsightsでAnalyticsにデータをインポート
- 11. Azure Application Insightsコールスタックを使用したデバッグ
- 12. プログラムでAzure Application Insights Analyticsをクエリする
- 13. application insights unqiueのリクエスト
- 14. Application Insights選択的テレメトリデータキャプチャ
- 15. Application Insightsの有効なURLのAzureランダム404
- 16. Microsoft Application Insights APIを模擬しました
- 17. Microsoftのドキュメント(ここで見つける:<a href="https://docs.microsoft.com/en-us/azure/application-insights/app-insights-api-custom-events-metrics" rel="nofollow noreferrer">https://docs.microsoft.com/en-us/azure/application-insights/app-insights-api-custom-events-metrics</a>を)によるとApplicationInsights
- 18. Azure Application Insightsでの平均使用時間
- 19. Azure Application Insights:日付と数字の書式設定の方法
- 20. Visual StudioなしでAzure WebApp Application Insightsをインストールできない
- 21. Azure Application Insightsはサーバーモニターグラフを表示できません
- 22. Azure Application InsightsとGoogle検索のIPアドレスの不一致
- 23. Azure Application Insightsでパフォーマンスデータをエクスポートする方法
- 24. Azure Application Insightsアナリティクスユニオンとカラムの比較のクエリ
- 25. 設定Application Insights asp.netコアのインストルメンテーションキーAzure WebアプリケーションのRC2
- 26. Azure Application Insights同じ変数を共有するためのクエリ
- 27. Azure Application Insights - 基本認証での可用性テスト?
- 28. Application Insightsを使用してAzureにASP.NETコアトレースをログ
- 29. Azure Application Insights - HTTPエラーを検索しますか?
- 30. Azure Application Insights Analytics - 新しい列を2列目に拡張
わからないあなたが意味します。 –
APIキー認証とAzure Active Directory認証の2つの方法がありますが、2つ目の方法の例はありません。私は最初の方法でAPIのレート制限の問題に直面しているので、私は第2の方法を使用したい –
私にその文書へのリンクを教えてもらえますか? –