Workspaces - Restore Workspace
还原已删除的工作区。
Note
此 API 是预览版的一部分,仅用于评估和开发目的。 它可能会根据反馈进行更改,不建议将其用于生产。
Permissions
调用方必须具有 Fabric 管理员权限。
所需的委派范围
Tenant.ReadWrite.All.
Limitations
每分钟最多 10 个请求。
Microsoft Entra 支持的标识
此 API 支持本节中列出的Microsoft 标识。
| Identity | Support |
|---|---|
| User | Yes |
| 服务主体和托管标识 | Yes |
Interface
POST https://api.fabric.microsoft.com/v1/admin/workspaces/{workspaceId}/restore
URI 参数
| 名称 | 在 | 必需 | 类型 | 说明 |
|---|---|---|---|---|
|
workspace
|
path | True |
string (uuid) |
工作区 ID。 |
请求正文
| 名称 | 类型 | 说明 |
|---|---|---|
| newWorkspaceAdminPrincipal |
工作区的管理员。 |
|
| newWorkspaceName |
string |
工作区的名称。 如果还原请求适用于 “我的工作区”,则为必需。 |
响应
| 名称 | 类型 | 说明 |
|---|---|---|
| 200 OK |
已成功还原工作区。 |
|
| Other Status Codes |
常见错误代码:
|
示例
Restore workspace example
示例请求
POST https://api.fabric.microsoft.com/v1/admin/workspaces/97dd1d38-a4c6-41ed-bc4f-1e383f8ddd0f/restore
{
"newWorkspaceName": "Contoso Workspace",
"newWorkspaceAdminPrincipal": {
"id": "17dd1e38-a4c6-41ed-bc4f-1e383f8ddd01",
"type": "User"
}
}
示例响应
定义
| 名称 | 说明 |
|---|---|
|
Error |
与错误相关的资源详细信息对象。 |
|
Error |
错误响应。 |
|
Error |
错误响应详细信息。 |
|
Group |
组特定详细信息。 当主体类型 |
|
Group |
组的类型。 可能会随着时间的推移添加其他组类型。 |
| Principal |
表示标识或Microsoft Entra 组。 |
|
Principal |
主体的类型。 可能会随着时间的推移添加其他主体类型。 |
|
Restore |
还原已删除工作区的请求。 |
|
Service |
服务主体特定详细信息。 当主体类型 |
|
Service |
服务主体配置文件详细信息。 当主体类型 |
|
User |
用户主体特定详细信息。 当主体类型 |
ErrorRelatedResource
与错误相关的资源详细信息对象。
| 名称 | 类型 | 说明 |
|---|---|---|
| resourceId |
string |
错误中涉及的资源 ID。 |
| resourceType |
string |
错误中涉及的资源的类型。 |
ErrorResponse
错误响应。
| 名称 | 类型 | 说明 |
|---|---|---|
| errorCode |
string |
提供有关错误条件的信息的特定标识符,允许服务与其用户之间的标准化通信。 |
| message |
string |
错误的人工可读表示形式。 |
| moreDetails |
其他错误详细信息的列表。 |
|
| relatedResource |
与错误相关的资源详细信息。 |
|
| requestId |
string |
与错误关联的请求的 ID。 |
ErrorResponseDetails
错误响应详细信息。
| 名称 | 类型 | 说明 |
|---|---|---|
| errorCode |
string |
提供有关错误条件的信息的特定标识符,允许服务与其用户之间的标准化通信。 |
| message |
string |
错误的人工可读表示形式。 |
| relatedResource |
与错误相关的资源详细信息。 |
GroupDetails
组特定详细信息。 当主体类型 Group时适用。
| 名称 | 类型 | 说明 |
|---|---|---|
| groupType |
组的类型。 可能会随着时间的推移添加其他组类型。 |
GroupType
组的类型。 可能会随着时间的推移添加其他组类型。
| 值 | 说明 |
|---|---|
| Unknown |
主体组类型未知。 |
| SecurityGroup |
主体是安全组。 |
| DistributionList |
主体是通讯组列表。 |
Principal
表示标识或Microsoft Entra 组。
| 名称 | 类型 | 说明 |
|---|---|---|
| displayName |
string |
主体的显示名称。 |
| groupDetails |
组特定详细信息。 当主体类型 |
|
| id |
string (uuid) |
主体的 ID。 |
| servicePrincipalDetails |
服务主体特定详细信息。 当主体类型 |
|
| servicePrincipalProfileDetails |
服务主体配置文件详细信息。 当主体类型 |
|
| type |
主体的类型。 可能会随着时间的推移添加其他主体类型。 |
|
| userDetails |
用户主体特定详细信息。 当主体类型 |
PrincipalType
主体的类型。 可能会随着时间的推移添加其他主体类型。
| 值 | 说明 |
|---|---|
| User |
主体是Microsoft Entra 用户主体。 |
| ServicePrincipal |
主体是Microsoft Entra 服务主体。 |
| Group |
主体是安全组。 |
| ServicePrincipalProfile |
主体是服务主体配置文件。 |
| EntireTenant |
主体表示所有租户用户。 |
RestoreWorkspaceRequest
还原已删除工作区的请求。
| 名称 | 类型 | 说明 |
|---|---|---|
| newWorkspaceAdminPrincipal |
工作区的管理员。 |
|
| newWorkspaceName |
string |
工作区的名称。 如果还原请求适用于 “我的工作区”,则为必需。 |
ServicePrincipalDetails
服务主体特定详细信息。 当主体类型 ServicePrincipal时适用。
| 名称 | 类型 | 说明 |
|---|---|---|
| aadAppId |
string (uuid) |
服务主体的 Microsoft Entra AppId。 |
ServicePrincipalProfileDetails
服务主体配置文件详细信息。 当主体类型 ServicePrincipalProfile时适用。
| 名称 | 类型 | 说明 |
|---|---|---|
| parentPrincipal |
服务主体配置文件的父主体。 |
UserDetails
用户主体特定详细信息。 当主体类型 User时适用。
| 名称 | 类型 | 说明 |
|---|---|---|
| userPrincipalName |
string |
用户主体名称。 |