Workspaces - Get Workspace Encryption

取得工作空間 Customer-Managed 金鑰(CMK)加密設定。
回傳指定工作區的 CMK 加密設定與狀態。

權限

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

必要的委派範圍

Workspace.Read.All 或 Workspace.ReadWrite.All

Microsoft Entra 支援的身份識別

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

身分識別 Support
User Yes
服務主體 和 受控識別 Yes

Interface

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

URI 參數

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

string (uuid)

工作區識別碼。

回覆

名稱 類型 Description
200 OK

WorkspaceEncryptionDetail

要求成功完成。 若加密進行中,回應會包含標 Retry-After 頭。


標題:

重試之後integer - 表示用戶端可重試以取得加密狀態的秒數。

429 Too Many Requests

ErrorResponse

服務費率上限被超標。 伺服器會回傳一個 Retry-After 標頭,以秒數表示客戶端在發送額外請求前必須等待多久。

標題

Retry-After: integer

Other Status Codes

ErrorResponse

常見的錯誤碼:

  • UnknownError - 發生錯誤。

範例

Get workspace CMK encryption active example
Get workspace CMK encryption in progress example

Get workspace CMK encryption active example

範例要求

GET https://api.fabric.microsoft.com/v1/workspaces/47482db6-4583-4672-86dd-999d0f8f4d7a/encryption

範例回覆

{
  "encryptionDetail": {
    "keyIdentifier": "https://westus07112025-cmktest1.vault.azure.net/keys/test2k/",
    "encryptionStatus": "Active"
  }
}

Get workspace CMK encryption in progress example

範例要求

GET https://api.fabric.microsoft.com/v1/workspaces/47482db6-4583-4672-86dd-999d0f8f4d7a/encryption

範例回覆

Retry-After: 900
{
  "encryptionDetail": {
    "keyIdentifier": "https://westus07112025-cmktest1.vault.azure.net/keys/test2k/",
    "encryptionStatus": "EnableInProgress"
  },
  "previousEncryptionDetail": {
    "keyIdentifier": "https://westus07112025-cmktest1.vault.azure.net/keys/key1/",
    "encryptionStatus": "Active"
  },
  "workspaceEncryptionItemsDetails": [
    {
      "items": [
        {
          "displayName": "copyjob1",
          "type": "CopyJob",
          "id": "9d922047-55a9-4737-8ec0-f34a320100bc"
        },
        {
          "displayName": "copyjob2",
          "type": "CopyJob",
          "id": "8d022047-55a9-4737-8ec0-f34a320100b7"
        }
      ],
      "encryptionStatus": "EnableInProgress"
    }
  ]
}

定義

名稱 Description
EncryptionDetail

工作區加密細節。

ErrorParameter

一個結構化參數,提供關於錯誤的額外機器可讀上下文。

ErrorRelatedResource

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

ErrorResponse

錯誤回應。

ErrorResponseDetails

錯誤回應的細節。

WorkspaceEncryptionDetail

工作區加密設定與狀態細節。

WorkspaceEncryptionItem

工作區物品細節。

WorkspaceEncryptionItemsDetail

工作區項目的加密狀態細節。

WorkspaceEncryptionStatus

工作區加密狀態。

EncryptionDetail

工作區加密細節。

名稱 類型 Description
encryptionStatus

WorkspaceEncryptionStatus

工作區加密狀態。

keyIdentifier

string

金鑰識別碼。

ErrorParameter

一個結構化參數,提供關於錯誤的額外機器可讀上下文。

名稱 類型 Description
message

string

一個人類可讀的參數意義描述。

name

string

參數識別碼。

value

string

這是參數值。

ErrorRelatedResource

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

名稱 類型 Description
resourceId

string

發生錯誤的資源識別碼。

resourceType

string

發生錯誤的資源類型。

ErrorResponse

錯誤回應。

名稱 類型 Description
errorCode

string

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

isRetriable

boolean

若屬實,請求可重新嘗試。 如果有延遲,請使用 Retry-After 回應標頭來判斷延遲。

message

string

以人類可讀格式呈現的錯誤訊息。

moreDetails

ErrorResponseDetails[]

其他錯誤詳情的清單。

parameters

ErrorParameter[]

結構化參數提供更多機器可讀的錯誤上下文。

relatedResource

ErrorRelatedResource

與錯誤相關的資源詳情。

requestId

string (uuid)

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

ErrorResponseDetails

錯誤回應的細節。

名稱 類型 Description
errorCode

string

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

message

string

以人類可讀格式呈現的錯誤訊息。

parameters

ErrorParameter[]

結構化參數提供更多機器可讀的錯誤上下文。

relatedResource

ErrorRelatedResource

與錯誤相關的資源詳情。

WorkspaceEncryptionDetail

工作區加密設定與狀態細節。

名稱 類型 Description
encryptionDetail

EncryptionDetail

工作區加密細節。

previousEncryptionDetail

EncryptionDetail

之前的工作區加密細節。

workspaceEncryptionItemsDetails

WorkspaceEncryptionItemsDetail[]

工作區中項目的加密狀態。

WorkspaceEncryptionItem

工作區物品細節。

名稱 類型 Description
displayName

string

項目顯示名稱。

id

string (uuid)

該項目編號。

type

string

項目類型。

WorkspaceEncryptionItemsDetail

工作區項目的加密狀態細節。

名稱 類型 Description
encryptionStatus

WorkspaceEncryptionStatus

物品的加密狀態。

items

WorkspaceEncryptionItem[]

工作區項目細節的陣列。

WorkspaceEncryptionStatus

工作區加密狀態。

值 Description
Disabled

工作區加密尚未啟用。

Active

工作區加密是啟用狀態,且工作區是加密的。

EnableInProgress

工作區加密正在啟用。

DisableInProgress

工作區加密會被停用。

Failed

Workspace 加密應用程式失敗。