Custom Pools - Create Workspace Custom Pool
カスタム プールを作成します。
権限
呼び出し元には、管理者 ワークスペース ロール 必要があります。
必要な委任されたスコープ
Workspace.ReadWrite.All
Microsoft Entra でサポートされている ID
この API では、このセクションに記載されている Microsoft ID がサポートされています。
アイデンティティ | 支援 |
---|---|
ユーザー | イエス |
サービス プリンシパルの とマネージド ID の | イエス |
インターフェイス
POST https://api.fabric.microsoft.com/v1/workspaces/{workspaceId}/spark/pools
URI パラメーター
名前 | / | 必須 | 型 | 説明 |
---|---|---|---|---|
workspace
|
path | True |
string (uuid) |
ワークスペース ID。 |
要求本文
名前 | 必須 | 型 | 説明 |
---|---|---|---|
autoScale | True |
自動スケール。 |
|
dynamicExecutorAllocation | True |
動的実行プログラムの割り当て。 |
|
name | True |
string |
カスタム プール名。 |
nodeFamily | True |
ノード ファミリ。 |
|
nodeSize | True |
ノード サイズ。 |
応答
名前 | 型 | 説明 |
---|---|---|
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
}
}
定義
名前 | 説明 |
---|---|
Auto |
自動スケールのプロパティ。 |
Create |
カスタム プール要求ペイロードを作成します。 |
Custom |
カスタム プール。 |
Custom |
カスタム プールの種類。 追加の |
Dynamic |
動的な Executor の割り当ての確率。 |
Error |
エラー関連のリソース詳細オブジェクト。 |
Error |
エラー応答。 |
Error |
エラー応答の詳細。 |
Node |
ノード ファミリ。 追加の |
Node |
AutoScaleProperties
自動スケールのプロパティ。
名前 | 型 | 説明 |
---|---|---|
enabled |
boolean |
自動スケールの状態。 False - 無効、true - 有効。 |
maxNodeCount |
integer (int32) minimum: 1 |
ノードの最大数。 |
minNodeCount |
integer (int32) minimum: 1 |
最小ノード数。 |
CreateCustomPoolRequest
カスタム プール要求ペイロードを作成します。
名前 | 型 | 説明 |
---|---|---|
autoScale |
自動スケール。 |
|
dynamicExecutorAllocation |
動的実行プログラムの割り当て。 |
|
name |
string |
カスタム プール名。 |
nodeFamily |
ノード ファミリ。 |
|
nodeSize |
ノード サイズ。 |
CustomPool
カスタム プール。
名前 | 型 | 説明 |
---|---|---|
autoScale |
自動スケール。 |
|
dynamicExecutorAllocation |
動的実行プログラムの割り当て。 |
|
id |
string (uuid) |
カスタム プール ID。 |
name |
string |
カスタム プール名。 |
nodeFamily |
ノード ファミリ。 |
|
nodeSize |
ノード サイズ。 |
|
type |
カスタム プールの種類。 |
CustomPoolType
カスタム プールの種類。 追加の CustomPoolType
型は、時間の経過と同時に追加される場合があります。
値 | 説明 |
---|---|
Capacity |
容量レベルのカスタム プール |
Workspace |
ワークスペース レベルのカスタム プール |
DynamicExecutorAllocationProperties
動的な Executor の割り当ての確率。
名前 | 型 | 説明 |
---|---|---|
enabled |
boolean |
動的実行プログラムの割り当ての状態。 False - 無効、true - 有効。 |
maxExecutors |
integer (int32) minimum: 1 |
最大実行プログラム。 |
minExecutors |
integer (int32) minimum: 1 |
最小実行プログラム。 |
ErrorRelatedResource
エラー関連のリソース詳細オブジェクト。
名前 | 型 | 説明 |
---|---|---|
resourceId |
string |
エラーに関係するリソース ID。 |
resourceType |
string |
エラーに関係するリソースの種類。 |
ErrorResponse
エラー応答。
名前 | 型 | 説明 |
---|---|---|
errorCode |
string |
エラー状態に関する情報を提供し、サービスとそのユーザー間の標準化された通信を可能にする特定の識別子。 |
message |
string |
エラーの人間が判読できる表現。 |
moreDetails |
その他のエラーの詳細の一覧。 |
|
relatedResource |
エラー関連のリソースの詳細。 |
|
requestId |
string |
エラーに関連付けられている要求の ID。 |
ErrorResponseDetails
エラー応答の詳細。
名前 | 型 | 説明 |
---|---|---|
errorCode |
string |
エラー状態に関する情報を提供し、サービスとそのユーザー間の標準化された通信を可能にする特定の識別子。 |
message |
string |
エラーの人間が判読できる表現。 |
relatedResource |
エラー関連のリソースの詳細。 |
NodeFamily
ノード ファミリ。 追加の NodeFamily
型は、時間の経過と同時に追加される場合があります。
値 | 説明 |
---|---|
MemoryOptimized |
メモリ最適化 |
NodeSize
ノード サイズ します。 追加の NodeSize
型は、時間の経過と同時に追加される場合があります。
値 | 説明 |
---|---|
Large |
ノード サイズが大きい |
Medium |
中ノード サイズ |
Small |
小さいノード サイズ |
XLarge |
XLarge ノード サイズ |
XXLarge |
XXLarge ノード サイズ |