共用方式為


Gateways - Get Datasource Status

檢查來自指定閘道之指定資料來源的連線狀態。

權限

使用者必須具有閘道管理員權限。

必要範圍

Dataset.ReadWrite.All

局限性

不支援虛擬網路 (VNet) 閘道。

GET https://api.powerbi.com/v1.0/myorg/gateways/{gatewayId}/datasources/{datasourceId}/status

URI 參數

名稱 位於 必要 類型 Description
datasourceId
path True

string (uuid)

資料來源識別碼

gatewayId
path True

string (uuid)

閘道 ID。 使用閘道叢集時,閘道 ID 是指叢集中的主要 (第一個) 閘道。 在這種情況下,閘道 ID 類似於閘道叢集 ID。

回應

名稱 類型 Description
200 OK

OK

範例

Gateway unreachable example

範例要求

GET https://api.powerbi.com/v1.0/myorg/gateways/1f69e798-5852-4fdd-ab01-33bb14b6e934/datasources/252b9de8-d915-4788-aaeb-ec8c2395f970/status

範例回覆

{
  "error": {
    "code": "DM_GWPipeline_Client_GatewayUnreachable",
    "pbi.error": {
      "code": "DM_GWPipeline_Client_GatewayUnreachable",
      "parameters": {},
      "details": [],
      "exceptionCulprit": 1
    }
  }
}