Custom Pools - Create Workspace Custom Pool
Skapa en anpassad pool.
Behörigheter
Anroparen måste ha administratör arbetsyteroll.
Obligatoriska delegerade omfång
Workspace.ReadWrite.All
Identiteter som stöds av Microsoft Entra
Det här API:et stöder Microsoft identiteter som anges i det här avsnittet.
| Identitet | Stöd | 
|---|---|
| Användare | Ja | 
| Tjänstens huvudnamn och hanterade identiteter | Ja | 
Gränssnitt
POST https://api.fabric.microsoft.com/v1/workspaces/{workspaceId}/spark/pools
		URI-parametrar
| Name | I | Obligatorisk | Typ | Description | 
|---|---|---|---|---|
| 
						 workspace 
					 | 
					path | True | 
			 string (uuid)  | 
					
						 Arbetsmiljöns ID.  | 
				
Begärandetext
| Name | Obligatorisk | Typ | Description | 
|---|---|---|---|
| autoScale | True | 
		 Autoskalning.  | 
|
| dynamicExecutorAllocation | True | 
		 Dynamisk körallokering.  | 
|
| name | True | 
			 string  | 
	
		 Namn på anpassad pool.  | 
| nodeFamily | True | 
		 Nodfamilj.  | 
|
| nodeSize | True | 
		 Nodstorlek.  | 
Svar
| Name | Typ | Description | 
|---|---|---|
| 201 Created | 
		 Begäran har slutförts. Sidhuvuden Location: string  | 
|
| Other Status Codes | 
		 Vanliga felkoder: 
  | 
Exempel
Create custom pool example
Exempelbegäran
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
  }
}
Exempelsvar
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
  }
}
				Definitioner
| Name | Description | 
|---|---|
| 
							Auto | 
						
							 Autoskalningsegenskaper.  | 
					
| 
							Create | 
						
							 Skapa nyttolast för anpassad poolbegäran.  | 
					
| 
							Custom | 
						
							 Anpassad pool.  | 
					
| 
							Custom | 
						
							 Typ av anpassad pool. Ytterligare   | 
					
| 
							Dynamic | 
						
							 Proerties för dynamisk exekutorallokering.  | 
					
| 
							Error | 
						
							 Det felrelaterade resursinformationsobjektet.  | 
					
| 
							Error | 
						
							 Felsvaret.  | 
					
| 
							Error | 
						
							 Information om felsvar.  | 
					
| 
							Node | 
						
							 Nodfamilj. Ytterligare   | 
					
| 
							Node | 
						
							 
              Nodstorlek. Ytterligare   | 
					
AutoScaleProperties  
			
			Autoskalningsegenskaper.
| Name | Typ | Description | 
|---|---|---|
| enabled | 
			 boolean  | 
	
		 Status för den automatiska skalningen. Falskt – inaktiverat, sant – aktiverat.  | 
| maxNodeCount | 
			 integer (int32) minimum: 1 | 
	
		 Maximalt antal noder.  | 
| minNodeCount | 
			 integer (int32) minimum: 1 | 
	
		 Minsta antal noder.  | 
CreateCustomPoolRequest   
			
			Skapa nyttolast för anpassad poolbegäran.
| Name | Typ | Description | 
|---|---|---|
| autoScale | 
		 Autoskalning.  | 
|
| dynamicExecutorAllocation | 
		 Dynamisk körallokering.  | 
|
| name | 
			 string  | 
	
		 Namn på anpassad pool.  | 
| nodeFamily | 
		 Nodfamilj.  | 
|
| nodeSize | 
		 Nodstorlek.  | 
CustomPool 
			
			Anpassad pool.
| Name | Typ | Description | 
|---|---|---|
| autoScale | 
		 Autoskalning.  | 
|
| dynamicExecutorAllocation | 
		 Dynamisk körallokering.  | 
|
| id | 
			 string (uuid)  | 
	
		 Anpassat pool-ID.  | 
| name | 
			 string  | 
	
		 Namn på anpassad pool.  | 
| nodeFamily | 
		 Nodfamilj.  | 
|
| nodeSize | 
		 Nodstorlek.  | 
|
| type | 
		 Typ av anpassad pool.  | 
CustomPoolType  
			
			Typ av anpassad pool. Ytterligare CustomPoolType typer kan läggas till över tid.
| Värde | Description | 
|---|---|
| Workspace | 
		 Anpassad pool på arbetsyta  | 
| Capacity | 
		 Anpassad pool på kapacitetsnivå  | 
DynamicExecutorAllocationProperties   
			
			Proerties för dynamisk exekutorallokering.
| Name | Typ | Description | 
|---|---|---|
| enabled | 
			 boolean  | 
	
		 Status för den dynamiska körallokeringen. Falskt – inaktiverat, sant – aktiverat.  | 
| maxExecutors | 
			 integer (int32) minimum: 1 | 
	
		 Maximalt antal körbara filer.  | 
| minExecutors | 
			 integer (int32) minimum: 1 | 
	
		 Minimiexekutorer.  | 
ErrorRelatedResource  
			
			Det felrelaterade resursinformationsobjektet.
| Name | Typ | Description | 
|---|---|---|
| resourceId | 
			 string  | 
	
		 Det resurs-ID som ingår i felet.  | 
| resourceType | 
			 string  | 
	
		 Typen av resurs som är inblandad i felet.  | 
ErrorResponse 
			
			Felsvaret.
| Name | Typ | Description | 
|---|---|---|
| errorCode | 
			 string  | 
	
		 En specifik identifierare som ger information om ett feltillstånd, vilket möjliggör standardiserad kommunikation mellan vår tjänst och dess användare.  | 
| message | 
			 string  | 
	
		 En mänsklig läsbar representation av felet.  | 
| moreDetails | 
		 Lista över ytterligare felinformation.  | 
|
| relatedResource | 
		 Felrelaterad resursinformation.  | 
|
| requestId | 
			 string  | 
	
		 ID för den begäran som är associerad med felet.  | 
ErrorResponseDetails  
			
			Information om felsvar.
| Name | Typ | Description | 
|---|---|---|
| errorCode | 
			 string  | 
	
		 En specifik identifierare som ger information om ett feltillstånd, vilket möjliggör standardiserad kommunikation mellan vår tjänst och dess användare.  | 
| message | 
			 string  | 
	
		 En mänsklig läsbar representation av felet.  | 
| relatedResource | 
		 Felrelaterad resursinformation.  | 
NodeFamily 
			
			Nodfamilj. Ytterligare NodeFamily typer kan läggas till över tid.
| Värde | Description | 
|---|---|
| MemoryOptimized | 
		 Minnesoptimerad  | 
NodeSize 
			
			
              Nodstorlek. Ytterligare NodeSize typer kan läggas till över tid.
| Värde | Description | 
|---|---|
| Small | 
		 Liten nodstorlek  | 
| Medium | 
		 Medelhög nodstorlek  | 
| Large | 
		 Stor nodstorlek  | 
| XLarge | 
		 XLarge-nodstorlek  | 
| XXLarge | 
		 XXLarge nodstorlek  |