Custom Pools - Create Workspace Custom Pool
建立自訂集區。
權限
呼叫者必須具有 系統管理員 工作區角色。
必要的委派範圍
Workspace.ReadWrite.All
Microsoft Entra 支援的身分識別
此 API 支援本節中列出的Microsoft 身分識別。
| 身份 | 支援 |
|---|---|
| 使用者 | 是的 |
| 服務主體 和 受控識別 | 是的 |
介面
POST https://api.fabric.microsoft.com/v1/workspaces/{workspaceId}/spark/pools
URI 參數
| 名稱 | 位於 | 必要 | 類型 | Description |
|---|---|---|---|---|
|
workspace
|
path | True |
string (uuid) |
工作區標識碼。 |
要求本文
| 名稱 | 必要 | 類型 | Description |
|---|---|---|---|
| autoScale | True |
自動調整。 |
|
| dynamicExecutorAllocation | True |
動態執行程式配置。 |
|
| name | True |
string |
自訂集區名稱。 |
| nodeFamily | True |
節點系列。 |
|
| nodeSize | True |
節點大小。 |
回應
| 名稱 | 類型 | Description |
|---|---|---|
| 201 Created |
要求成功完成。 標題 Location: string |
|
| Other Status Codes |
常見的錯誤碼:
|
範例
Create custom pool example
範例要求
POST https://api.fabric.microsoft.com/v1/workspaces/f089354e-8366-4e18-aea3-4cb4a3a50b48/spark/pools
{
"name": "pool1",
"nodeFamily": "MemoryOptimized",
"nodeSize": "Small",
"autoScale": {
"enabled": true,
"minNodeCount": 1,
"maxNodeCount": 2
},
"dynamicExecutorAllocation": {
"enabled": true,
"minExecutors": 1,
"maxExecutors": 1
}
}
範例回覆
Location: https://api.fabric.microsoft.com/v1/workspaces/f089354e-8366-4e18-aea3-4cb4a3a50b48/spark/pools/2367293d-b70b-4b33-97f2-161b8d04a8d7
{
"id": "2367293d-b70b-4b33-97f2-161b8d04a8d7",
"name": "pool1",
"type": "Workspace",
"nodeFamily": "MemoryOptimized",
"nodeSize": "Small",
"autoScale": {
"enabled": true,
"minNodeCount": 1,
"maxNodeCount": 2
},
"dynamicExecutorAllocation": {
"enabled": true,
"minExecutors": 1,
"maxExecutors": 1
}
}
定義
| 名稱 | Description |
|---|---|
|
Auto |
自動調整屬性。 |
|
Create |
建立自定義集區要求承載。 |
|
Custom |
自訂集區。 |
|
Custom |
自訂集區類型。 可能會隨著時間新增其他 |
|
Dynamic |
動態執行程式配置 Proerties。 |
|
Error |
錯誤相關的資源詳細資料物件。 |
|
Error |
錯誤回應。 |
|
Error |
錯誤回應詳細數據。 |
|
Node |
節點系列。 可能會隨著時間新增其他 |
|
Node |
節點大小。 可能會隨著時間新增其他 |
AutoScaleProperties
自動調整屬性。
| 名稱 | 類型 | Description |
|---|---|---|
| enabled |
boolean |
自動調整的狀態。 False - Disabled,true - Enabled。 |
| maxNodeCount |
integer (int32) minimum: 1 |
節點計數上限。 |
| minNodeCount |
integer (int32) minimum: 1 |
節點計數下限。 |
CreateCustomPoolRequest
建立自定義集區要求承載。
| 名稱 | 類型 | Description |
|---|---|---|
| autoScale |
自動調整。 |
|
| dynamicExecutorAllocation |
動態執行程式配置。 |
|
| name |
string |
自訂集區名稱。 |
| nodeFamily |
節點系列。 |
|
| nodeSize |
節點大小。 |
CustomPool
自訂集區。
| 名稱 | 類型 | Description |
|---|---|---|
| autoScale |
自動調整。 |
|
| dynamicExecutorAllocation |
動態執行程式配置。 |
|
| id |
string (uuid) |
自訂集區標識碼。 |
| name |
string |
自訂集區名稱。 |
| nodeFamily |
節點系列。 |
|
| nodeSize |
節點大小。 |
|
| type |
自訂集區類型。 |
CustomPoolType
自訂集區類型。 可能會隨著時間新增其他 CustomPoolType 類型。
| 值 | Description |
|---|---|
| Workspace |
工作區層級自定義集區 |
| Capacity |
容量層級自定義集區 |
DynamicExecutorAllocationProperties
動態執行程式配置 Proerties。
| 名稱 | 類型 | Description |
|---|---|---|
| enabled |
boolean |
動態執行程式配置的狀態。 False - Disabled,true - Enabled。 |
| maxExecutors |
integer (int32) minimum: 1 |
執行程式上限。 |
| minExecutors |
integer (int32) minimum: 1 |
最小執行程式。 |
ErrorRelatedResource
錯誤相關的資源詳細資料物件。
| 名稱 | 類型 | Description |
|---|---|---|
| resourceId |
string |
發生錯誤的資源識別碼。 |
| resourceType |
string |
發生錯誤的資源類型。 |
ErrorResponse
錯誤回應。
| 名稱 | 類型 | Description |
|---|---|---|
| errorCode |
string |
提供錯誤狀況相關信息的特定標識碼,允許服務與其使用者之間的標準化通訊。 |
| message |
string |
錯誤的人類可讀取表示法。 |
| moreDetails |
其他錯誤詳細數據的清單。 |
|
| relatedResource |
錯誤相關的資源詳細數據。 |
|
| requestId |
string |
與錯誤相關聯的要求標識碼。 |
ErrorResponseDetails
錯誤回應詳細數據。
| 名稱 | 類型 | Description |
|---|---|---|
| errorCode |
string |
提供錯誤狀況相關信息的特定標識碼,允許服務與其使用者之間的標準化通訊。 |
| message |
string |
錯誤的人類可讀取表示法。 |
| relatedResource |
錯誤相關的資源詳細數據。 |
NodeFamily
節點系列。 可能會隨著時間新增其他 NodeFamily 類型。
| 值 | Description |
|---|---|
| MemoryOptimized |
記憶體優化 |
NodeSize
節點大小。 可能會隨著時間新增其他 NodeSize 類型。
| 值 | Description |
|---|---|
| Small |
小型節點大小 |
| Medium |
中型節點大小 |
| Large |
大型節點大小 |
| XLarge |
XLarge節點大小 |
| XXLarge |
XXLarge節點大小 |