Workspaces - List Workspaces
傳回主體可以存取的工作區清單。 使用角色查詢參數,依主體工作區角色篩選結果。
此 API 支援 分頁。
必要的委派範圍
Workspace.Read.All 或 Workspace.ReadWrite.All
節流限制
| 限制類型 | Value |
|---|---|
| 平台 API 統一配額 | 每分鐘500通電話 |
| API 限制 | 每分鐘500通電話 |
Microsoft Entra 支援的身份識別
此 API 支援本節中列出的Microsoft 身分識別。
| 身份 | 支援 |
|---|---|
| 使用者 | 是的 |
| 服務主體 和 受控識別 | 是的 |
介面
GET https://api.fabric.microsoft.com/v1/workspaces
GET https://api.fabric.microsoft.com/v1/workspaces?roles={roles}&continuationToken={continuationToken}&preferWorkspaceSpecificEndpoints={preferWorkspaceSpecificEndpoints}
URI 參數
| 名稱 | 位於 | 必要 | 類型 | Description |
|---|---|---|---|---|
|
continuation
|
query |
string |
用來擷取下一頁結果的令牌。 |
|
|
prefer
|
query |
boolean |
控制是否包含每個工作區工作區特定 API 端點的設定。 True - 包含工作區特定的 API 端點,False - 不包含工作區特定的 API 端點。 |
|
|
roles
|
query |
string |
角色清單。 使用逗號分隔值。 如果未提供,則會傳回所有工作區。 |
回覆
| 名稱 | 類型 | Description |
|---|---|---|
| 200 OK |
要求成功完成。 |
|
| 429 Too Many Requests |
服務費率上限被超標。 伺服器會回傳一個 標題 Retry-After: integer |
|
| Other Status Codes |
常見的錯誤碼:
|
範例
| List workspaces example |
| List workspaces with continuation example |
|
List workspaces with prefer |
| List workspaces with roles filter example |
List workspaces example
範例要求
GET https://api.fabric.microsoft.com/v1/workspaces
範例回覆
{
"value": [
{
"id": "fa9ad228-3e6b-44d4-b5f4-e275f337afa9",
"displayName": "My workspace",
"description": "",
"type": "Personal"
},
{
"id": "cfafbeb1-8037-4d0c-896e-a46fb27ff227",
"displayName": "Marketing",
"description": "A workspace used by the marketing team",
"type": "Workspace",
"tags": [
{
"id": "b3f2c8e9-4d8e-4a7c-9a32-f8c1b2e4d6af",
"displayName": "Marketing"
}
]
},
{
"id": "f2d70dc6-8f3e-4f2c-b00e-e2d336d7d711",
"displayName": "Finance",
"description": "A workspace used by the finance team",
"type": "Workspace",
"capacityId": "171018af-1531-4e61-942a-74f024b7f9fd",
"domainId": "7c889f28-999b-4945-840d-54da3e3b5a29",
"capacityRegion": "East US",
"tags": [
{
"id": "9b8c7d6e-5f4a-3b2c-1d0e-9f8a7b6c5d4e",
"displayName": "Finance"
},
{
"id": "b3f2c8e9-4d8e-4a7c-9a32-f8c1b2e4d6af",
"displayName": "Marketing"
}
]
}
]
}
List workspaces with continuation example
範例要求
GET https://api.fabric.microsoft.com/v1/workspaces
範例回覆
{
"value": [
{
"id": "fa9ad228-3e6b-44d4-b5f4-e275f337afa9",
"displayName": "My workspace",
"description": "",
"type": "Personal"
},
{
"id": "cfafbeb1-8037-4d0c-896e-a46fb27ff227",
"displayName": "Marketing",
"description": "A workspace used by the marketing team",
"type": "Workspace"
},
{
"id": "f2d70dc6-8f3e-4f2c-b00e-e2d336d7d711",
"displayName": "Finance",
"description": "A workspace used by the finance team",
"type": "Workspace",
"capacityId": "171018af-1531-4e61-942a-74f024b7f9fd",
"capacityRegion": "East US"
}
],
"continuationToken": "LDEsMTAwMDAwLDA%3D",
"continuationUri": "https://api.fabric.microsoft.com/v1/workspaces?continuationToken=LDEsMTAwMDAwLDA%3D"
}
List workspaces with preferWorkspaceSpecificEndpoints example
範例要求
GET https://api.fabric.microsoft.com/v1/workspaces?preferWorkspaceSpecificEndpoints=True
範例回覆
{
"value": [
{
"id": "cfafbeb1-8037-4d0c-896e-a46fb27ff227",
"displayName": "Alice's Workspace",
"description": "A workspace for Alice",
"type": "Workspace",
"apiEndpoint": "https://cfafbeb180374d0c896ea46fb27ff227.zcf.w.api.fabric.microsoft.com"
},
{
"id": "0c02a0cd-71bc-410f-aa05-5a7bc98765f7",
"displayName": "Bob's Workspace",
"description": "A workspace for Bob",
"type": "Workspace",
"apiEndpoint": "https://0c02a0cd71bc410faa055a7bc98765f7.z0c.w.api.fabric.microsoft.com"
}
]
}
List workspaces with roles filter example
範例要求
GET https://api.fabric.microsoft.com/v1/workspaces?roles=Admin,Member,Contributor,Viewer
範例回覆
{
"value": [
{
"id": "fa9ad228-3e6b-44d4-b5f4-e275f337afa9",
"displayName": "Admins workspace",
"description": "A workspace for admins",
"type": "Personal"
},
{
"id": "cfafbeb1-8037-4d0c-896e-a46fb27ff227",
"displayName": "Members workspace",
"description": "A workspace for members",
"type": "Workspace"
},
{
"id": "0c02a0cd-71bc-410f-aa05-5a7bc98765f7",
"displayName": "Contributors workspace",
"description": "A workspace for contributors",
"type": "Workspace"
},
{
"id": "99d58687-8903-4dbd-8a78-40f95dca7177",
"displayName": "Viewers workspace",
"description": "A workspace for viewers",
"type": "Workspace"
}
]
}
定義
| 名稱 | Description |
|---|---|
|
Capacity |
與此工作區相關聯的容量區域。 可能會隨著時間新增額外的容量區域值。 |
|
Error |
一個結構化參數,提供關於錯誤的額外機器可讀上下文。 |
|
Error |
錯誤相關的資源詳細資料物件。 |
|
Error |
錯誤回應。 |
|
Error |
錯誤回應詳細數據。 |
| Workspace |
工作區物件。 |
|
Workspace |
代表已套用的標籤。 |
| Workspaces | |
|
Workspace |
工作區類型。 可能會隨著時間新增其他工作區類型。 |
CapacityRegion
與此工作區相關聯的容量區域。 可能會隨著時間新增額外的容量區域值。
| 值 | Description |
|---|---|
| Australia East |
澳大利亞東部地區 |
| Australia Southeast |
澳大利亞東南部區域 |
| Brazil South |
巴西南部地區 |
| Brazil Southeast |
巴西東南部區域 |
| Canada Central |
加拿大中部地區 |
| Canada East |
加拿大東部區域 |
| Central India |
印度中部地區 |
| Central US |
美國中部區域 |
| Central US EUAP |
美國中部 EUAP 區域 |
| East Asia |
東亞區域 |
| East US |
美國東部區域 |
| East US 2 |
美國東部 2 區域 |
| France Central |
法國中部地區 |
| France South |
法國南部地區 |
| Germany Central |
德國中部地區 |
| Germany Northeast |
德國東北部地區 |
| Israel Central |
以色列中部地區 |
| Italy North |
義大利北部地區 |
| Japan East |
日本東部區域 |
| Japan West |
日本西部地區 |
| Korea Central |
韓國中部地區 |
| Korea South |
韓國地區 |
| Mexico Central |
墨西哥中部地區 |
| North Central US |
美國中北部區域 |
| North Europe |
北歐區域 |
| Norway East |
挪威東部區域 |
| Norway West |
挪威西部地區 |
| Poland Central |
波蘭中部地區 |
| South Africa North |
南非北部地區 |
| South Africa West |
南非西部地區 |
| South Central US |
美國中南部區域 |
| South India |
印度南部地區 |
| Southeast Asia |
東南亞區域 |
| Spain Central |
西班牙中部地區 |
| Sweden Central |
瑞典中部地區 |
| Switzerland North |
瑞士北部區域 |
| Switzerland West |
瑞士西部區域 |
| West Europe |
歐洲西部區域 |
| West India |
印度西部地區 |
| West US |
美國西部區域 |
| West US 2 |
美國西部 2 區域 |
| West US 3 |
美國西部 3 區域 |
| West Central US |
美國中西部區域 |
| UAE Central |
阿聯酋中部地區 |
| UAE North |
阿聯酋北部地區 |
| Qatar Central |
卡達中部地區 |
| Germany West Central |
德國中西部區域 |
| Germany North |
德國北部地區 |
| UK South |
英國南部區域 |
| UK West |
英國西部區域 |
| China North |
中國北方地區 |
| China East |
中國東部地區 |
| China East 2 |
中國東部 2 區域 |
| China East 3 |
中國東部 3 區域 |
| China North 2 |
中國北方 2 區域 |
| China North 3 |
中國北方 3 區域 |
ErrorParameter
一個結構化參數,提供關於錯誤的額外機器可讀上下文。
| 名稱 | 類型 | Description |
|---|---|---|
| message |
string |
一個人類可讀的參數意義描述。 |
| name |
string |
參數識別碼。 |
| value |
string |
這是參數值。 |
ErrorRelatedResource
錯誤相關的資源詳細資料物件。
| 名稱 | 類型 | Description |
|---|---|---|
| resourceId |
string |
發生錯誤的資源識別碼。 |
| resourceType |
string |
發生錯誤的資源類型。 |
ErrorResponse
錯誤回應。
| 名稱 | 類型 | Description |
|---|---|---|
| errorCode |
string |
提供錯誤狀況相關信息的特定標識碼,允許服務與其使用者之間的標準化通訊。 |
| isRetriable |
boolean |
若屬實,請求可重新嘗試。 如果有延遲,請使用 |
| message |
string |
錯誤的人類可讀取表示法。 |
| moreDetails |
其他錯誤詳細數據的清單。 |
|
| parameters |
結構化參數提供更多機器可讀的錯誤上下文。 |
|
| relatedResource |
錯誤相關的資源詳細數據。 |
|
| requestId |
string (uuid) |
與錯誤相關聯的要求標識碼。 |
ErrorResponseDetails
錯誤回應詳細數據。
| 名稱 | 類型 | Description |
|---|---|---|
| errorCode |
string |
提供錯誤狀況相關信息的特定標識碼,允許服務與其使用者之間的標準化通訊。 |
| message |
string |
錯誤的人類可讀取表示法。 |
| parameters |
結構化參數提供更多機器可讀的錯誤上下文。 |
|
| relatedResource |
錯誤相關的資源詳細數據。 |
Workspace
工作區物件。
| 名稱 | 類型 | Description |
|---|---|---|
| apiEndpoint |
string (uri) |
HTTP URL,代表工作區特定的 API 端點。 當使用者啟用 preferWorkspaceSpecificEndpoints 時,會傳回此端點值。 它允許透過私人連結進行 API 存取。 |
| capacityId |
string (uuid) |
指派工作區之容量的標識碼。 |
| capacityRegion |
與此工作區相關聯的容量區域。 |
|
| description |
string |
工作區描述。 |
| displayName |
string |
工作區顯示名稱。 |
| domainId |
string (uuid) |
工作區指派至之網域的識別碼。 |
| id |
string (uuid) |
工作區識別碼。 |
| tags |
已套用標籤的清單。 |
|
| type |
工作區類型。 |
WorkspaceAppliedTag
代表已套用的標籤。
| 名稱 | 類型 | Description |
|---|---|---|
| displayName |
string |
標籤的名稱。 |
| id |
string (uuid) |
標記標識碼。 |
Workspaces
| 名稱 | 類型 | Description |
|---|---|---|
| continuationToken |
string |
下一個結果集批次的令牌。 如果沒有其他記錄,則會從回應中移除。 |
| continuationUri |
string |
下一個結果集批次的 URI。 如果沒有其他記錄,則會從回應中移除。 |
| value |
工作區清單。 |
WorkspaceType
工作區類型。 可能會隨著時間新增其他工作區類型。
| 值 | Description |
|---|---|
| Personal |
我的資料夾或我的工作區,用來管理用戶專案。 |
| Workspace |
用來管理 Fabric 專案的工作區。 |
| AdminWorkspace |
系統管理員監視工作區。 包含系統管理員報告,例如稽核報告和使用量和採用報告。 |