2017-07-24 31 views
1

我創建一個應用程序,我需要調用REST API來創建數據源相關這裏提到: https://docs.microsoft.com/en-us/azure/search/search-howto-indexing-azure-blob-storage如何通過郵遞員調用REST API在Azure中創建索引?

下面是我提出我的要求:

enter image description here

我得到以下錯誤:

{ 
    "error": { 
     "code": "", 
     "message": "The request is invalid. Details: index : The property 'type' does not exist on type 'Microsoft.Azure.Search.V2016_09_01.IndexDefinition'. Make sure to only use property names that are defined by the type.\r\n" 
    } 
} 

我該怎麼做才能使'type'設置正確?

+1

你想創建一個數據源或索引?您的請求正文用於創建數據源。另外,請停止在其他問題上標記我。 –

+0

如果您嘗試「創建數據源」,那麼您將發佈到錯誤的URL。 https:// [服務名稱] .search.windows.net/datasources?api-version = 2016-09-01 –

+0

@GauravMantri好吧,不會在任何其他地方標記你。謝謝,剛剛得到了錯誤的解決方案。 –

回答

2

你張貼到了錯誤的URL嘗試以下

https://[service name].search.windows.net/datasources?api-version=2016-09-01 
相關問題