この記事の目的
公式ドキュメントにはリファレンスが記載されているが、実行するとき毎回変換する必要があるため、備忘の為、記載する
実行するAPI
Azure AI Search Service内のシノニム マップの一覧を返すAPIを実行する
実行方法
PowerShell の Invoke-RestMethod を使用して実行する
実行例
$key = "<api key>"
$Resource = "<Resource 名>"
$apiversion = "<REST APIのバージョン>"
$url = "https://$Resource.search.windows.net/synonymmaps?api-version=$apiversion"
$headers = @{}
$headers["Content-Type"] = "application/json"
$headers["api-key"] = "$key"
$response = Invoke-RestMethod -Uri $url -Method GET -Headers $headers
$response | Format-List
key などの取得方法はこちらを参照
APIのバージョンはREST APIのリファレンスを参照