Items - List Items

返回指定工作区中的项列表。
此 API 支持 分页

权限

调用方必须具有 查看器 或更高版本的工作区角色。

所需的委派范围

Workspace.Read.All 或 Workspace.ReadWrite.All

Microsoft Entra 支持的标识

此 API 支持本节中列出的Microsoft 标识

身份 支持
用户 是的
服务主体托管标识 是的

接口

GET https://api.fabric.microsoft.com/v1/workspaces/{workspaceId}/items
GET https://api.fabric.microsoft.com/v1/workspaces/{workspaceId}/items?type={type}&continuationToken={continuationToken}

URI 参数

名称 必需 类型 说明
workspaceId
path True

string

uuid

工作区 ID。

continuationToken
query

string

用于检索下一页结果的令牌。

type
query

string

项的类型。

响应

名称 类型 说明
200 OK

Items

请求成功完成。

Other Status Codes

ErrorResponse

常见错误代码:

  • InvalidItemType - 项类型无效。

示例

List item in workspace with continuation example
List items in workspace by type query parameter example
List items in workspace example

List item in workspace with continuation example

示例请求

GET https://api.fabric.microsoft.com/v1/workspaces/cfafbeb1-8037-4d0c-896e-a46fb27ff229/items

示例响应

{
  "value": [
    {
      "id": "3546052c-ae64-4526-b1a8-52af7761426f",
      "displayName": "Lakehouse",
      "description": "A lakehouse used by the analytics team.",
      "type": "Lakehouse",
      "workspaceId": "cfafbeb1-8037-4d0c-896e-a46fb27ff229"
    },
    {
      "id": "58fa1eac-9694-4a6b-ba25-3520288e8fea",
      "displayName": "Notebook",
      "description": "A notebook for refining medical data analysis through machine learning algorithms.",
      "type": "KustoDashboard",
      "workspaceId": "cfafbeb1-8037-4d0c-896e-a46fb27ff229"
    }
  ],
  "continuationToken": "LDEsMTAwMDAwLDA%3D",
  "continuationUri": "https://api.fabric.microsoft.com/v1/workspaces/cfafbeb1-8037-4d0c-896e-a46fb27ff229/items?continuationToken=LDEsMTAwMDAwLDA%3D"
}

List items in workspace by type query parameter example

示例请求

GET https://api.fabric.microsoft.com/v1/workspaces/cfafbeb1-8037-4d0c-896e-a46fb27ff229/items?type=Lakehouse

示例响应

{
  "value": [
    {
      "id": "3546052c-ae64-4526-b1a8-52af7761426f",
      "displayName": "Lakehouse Name 1",
      "description": "A lakehouse used by the analytics team.",
      "type": "Lakehouse",
      "workspaceId": "cfafbeb1-8037-4d0c-896e-a46fb27ff229"
    }
  ]
}

List items in workspace example

示例请求

GET https://api.fabric.microsoft.com/v1/workspaces/cfafbeb1-8037-4d0c-896e-a46fb27ff229/items

示例响应

{
  "value": [
    {
      "id": "3546052c-ae64-4526-b1a8-52af7761426f",
      "displayName": "Lakehouse",
      "description": "A lakehouse used by the analytics team.",
      "type": "Lakehouse",
      "workspaceId": "cfafbeb1-8037-4d0c-896e-a46fb27ff229"
    },
    {
      "id": "58fa1eac-9694-4a6b-ba25-3520288e8fea",
      "displayName": "Notebook",
      "description": "A notebook for refining medical data analysis through machine learning algorithms.",
      "type": "KustoDashboard",
      "workspaceId": "cfafbeb1-8037-4d0c-896e-a46fb27ff229"
    }
  ]
}

定义

名称 说明
ErrorRelatedResource

与错误相关的资源详细信息对象。

ErrorResponse

错误响应。

ErrorResponseDetails

错误响应详细信息。

Item

项对象。

Items
ItemType

项的类型。 可能会随着时间的推移添加其他项类型。

ErrorRelatedResource

与错误相关的资源详细信息对象。

名称 类型 说明
resourceId

string

错误中涉及的资源 ID。

resourceType

string

错误中涉及的资源的类型。

ErrorResponse

错误响应。

名称 类型 说明
errorCode

string

提供有关错误条件的信息的特定标识符,允许服务与其用户之间的标准化通信。

message

string

错误的人工可读表示形式。

moreDetails

ErrorResponseDetails[]

其他错误详细信息的列表。

relatedResource

ErrorRelatedResource

与错误相关的资源详细信息。

requestId

string

与错误关联的请求的 ID。

ErrorResponseDetails

错误响应详细信息。

名称 类型 说明
errorCode

string

提供有关错误条件的信息的特定标识符,允许服务与其用户之间的标准化通信。

message

string

错误的人工可读表示形式。

relatedResource

ErrorRelatedResource

与错误相关的资源详细信息。

Item

项对象。

名称 类型 说明
description

string

项说明。

displayName

string

项显示名称。

id

string

uuid

项 ID。

type

ItemType

项类型。

workspaceId

string

uuid

工作区 ID。

Items

名称 类型 说明
continuationToken

string

下一个结果集批处理的令牌。 如果没有更多记录,则会从响应中删除该记录。

continuationUri

string

下一个结果集批处理的 URI。 如果没有更多记录,则会从响应中删除该记录。

value

Item[]

项列表。

ItemType

项的类型。 可能会随着时间的推移添加其他项类型。

说明
Dashboard

PowerBI 仪表板。

DataPipeline

数据管道。

Datamart

PowerBI Datamart。

Environment

环境。

Eventhouse

事件屋。

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

仓库。