共用方式為


Items - Get Item

傳回指定項目的屬性。
此 API 支援數個項目類型,請在 專案管理概觀中找到支援的專案類型,

如需擷取其他類型特定屬性,請參閱取得特定項目類型的 API 參考頁面。

權限

呼叫端在工作區上必須具有 查看器 或更高角色。

必要的委派範圍

針對專案 API,請使用下列範圍類型:

  • 泛型範圍:Item.Read.All 或 Item.ReadWrite.All
  • 特定範圍:itemType。Read.All 或 itemType。ReadWrite.All (例如:Notebook.ReadWrite.All)

如需範圍的詳細資訊,請參閱:範圍一文

Microsoft Entra 支援的身分識別

此 API 支援本節中列出的Microsoft 身分識別

身份 支援
使用者 是的
服務主體受控識別 是的

介面

GET https://api.fabric.microsoft.com/v1/workspaces/{workspaceId}/items/{itemId}

URI 參數

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

string

uuid

項目標識碼。

workspaceId
path True

string

uuid

工作區標識碼。

回應

名稱 類型 Description
200 OK

Item

要求成功完成。

Other Status Codes

ErrorResponse

常見的錯誤碼:

  • ItemNotFound - 找不到要求的專案。

範例

Get an item example

範例要求

GET https://api.fabric.microsoft.com/v1/workspaces/cfafbeb1-8037-4d0c-896e-a46fb27ff229/items/5b218778-e7a5-4d73-8187-f10824047715

範例回覆

{
  "displayName": "Item 1",
  "description": "Item 1 description",
  "type": "Lakehouse",
  "workspaceId": "cfafbeb1-8037-4d0c-896e-a46fb27ff229",
  "id": "5b218778-e7a5-4d73-8187-f10824047715"
}

定義

名稱 Description
ErrorRelatedResource

錯誤相關的資源詳細資料物件。

ErrorResponse

錯誤回應。

ErrorResponseDetails

錯誤回應詳細數據。

Item

項目物件。

ItemType

專案的型別。 可能會隨著時間新增其他項目類型。

ErrorRelatedResource

錯誤相關的資源詳細資料物件。

名稱 類型 Description
resourceId

string

發生錯誤的資源識別碼。

resourceType

string

發生錯誤的資源類型。

ErrorResponse

錯誤回應。

名稱 類型 Description
errorCode

string

提供錯誤狀況相關信息的特定標識碼,允許服務與其使用者之間的標準化通訊。

message

string

錯誤的人類可讀取表示法。

moreDetails

ErrorResponseDetails[]

其他錯誤詳細數據的清單。

relatedResource

ErrorRelatedResource

錯誤相關的資源詳細數據。

requestId

string

與錯誤相關聯的要求標識碼。

ErrorResponseDetails

錯誤回應詳細數據。

名稱 類型 Description
errorCode

string

提供錯誤狀況相關信息的特定標識碼,允許服務與其使用者之間的標準化通訊。

message

string

錯誤的人類可讀取表示法。

relatedResource

ErrorRelatedResource

錯誤相關的資源詳細數據。

Item

項目物件。

名稱 類型 Description
description

string

專案描述。

displayName

string

項目顯示名稱。

id

string

uuid

項目標識碼。

type

ItemType

項目類型。

workspaceId

string

uuid

工作區標識碼。

ItemType

專案的型別。 可能會隨著時間新增其他項目類型。

Description
Dashboard

PowerBI 儀錶板。

DataPipeline

數據管線。

Datamart

PowerBI datamart。

Environment

環境。

Eventhouse

事件屋。

Eventstream

eventstream。

GraphQLApi

GraphQL 專案的 API。

KQLDashboard

KQL 儀錶板。

KQLDatabase

KQL 資料庫。

KQLQueryset

KQL 查詢集。

Lakehouse

湖屋

MLExperiment

機器學習實驗。

MLModel

機器學習模型。

MirroredDatabase

鏡像資料庫。

MirroredWarehouse

鏡像倉儲。

MountedDataFactory

MountedDataFactory。

Notebook

筆記本。

PaginatedReport

PowerBI 編頁報表。

Reflex

反射。

Report

PowerBI 報表。

SQLDatabase

SQLDatabase。

SQLEndpoint

SQL 端點。

SemanticModel

PowerBI 語意模型。

SparkJobDefinition

Spark 作業定義。

Warehouse

倉儲。