ProvisionJob - addPMDevices
ProvisionJob - addPMDevices
Description :
This command adds target devices to a Provision Job.
The targetFile argument points to a CSV file that contains information about the devices you want to provision. This files uses the same format as shown in: ProvisionJob : createProvisionJob .
Return type : DBKey
Command Input :
Variable Name | Variable Type | Description |
|---|---|---|
jobKey | DBKey | Handle of the Provision Job to be updated. |
targetFile | String | URL to a CSV file that contains information about the devices you want to add to the Provision Job. |
Example
This example shows how to add devices to a Provision Job.
Script
# Get the DBKey of the Provision Job
PROVISION_JOB_DBKEY=`blcli ProvisionJob getDBKeyByGroupAndName $PROVISION_JOB_GROUP $PROVISION_JOB_NAME`
TARGET_FILE=file:///c:/target.csv
# Add devices from the target file to the Provision Job
NEW_PROVISION_JOB_DBKEY=`blcli ProvisionJob addPMDevices $PROVISION_JOB_DBKEY $TARGET_FILE`
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*