Edit storage pool replication work distribution

Edit replication work distribution for a storage pool.

Request

Security

Table 1. Roles capable of executing the Edit Storage Pool Replication Work Distribution API method
Any Super User System Admin Security Admin Operator
  superUser systemAdmin    

HTTP method

POST
/manager/api/{apiResponseType}/1.0/editStoragePoolReplicationWorkDistribution.adm 
HTTP/1.1 Host:{manager.dsnet}
id={storage-pool-
id}&useDefaultDistribution={true|false}&accessPoolDistributions[n]={work-
percent}&accessEnabledStoragePoolWorkDistribution={accesser-work-percent

Curl method

curl -u {admin}:{password} 
-k 
"https://{manager.dsnet}/manager/api/{apiResponseType}/1.0/editStoragePoolReplicat
ionWorkDistribution.adm" 
-d "id={storage-pool-
id}&useDefaultDistribution={true|false}&accessPoolDistributions[{access-pool-id-
1}]={work-percentage-1}&accessPoolDistributions[{access-pool-id-2}]={work-
percentage-2}"

Parameters

Table 2. Request Parameters for Edit Storage Pool Replication Work Distribution (editStoragePoolReplicationWorkDistribution) API method
Parameter Type Usage Default Description
id Long Required  

Manager-generated ID of a storage pool.

useDefaultDistribution Boolean Required  

Flag indicating whether to use default values for scanning work distribution.

accessPoolDistributions Map Optional  

A map of access pools ids and the percentage of work each should be assigned. The total of all percentages must equal 100.