Trying to utilize the PUT devices/bulkImport method that is documented in the Prime 3.0 API (/webacs/api/v1/op/devices/bulkImport-PUT?_docs). There seems to be issues related around using the credentialProfileName parameter.
As per the documentation there is the following warning:
There is limitation on attaching imported device to the credential profile. If credentialProfileNameparameter is given and is not empty, this device must not contain any other credential parameters. Parameters allowed to be used with credentialProfileName are: ipAddress, networkMask, and udfs. If any credential parameter is set along with credentialProfileName, the entire import operation will fail; none of the devices in the import request will be added or updated.
Tried sending the following json structure which then creates a job within prime to import the device.
device = {
"devicesImport": {
"devices": {
"device": [{
"credentialProfileName": 'ACS',
"ipAddress": "172.16.136.202",
}]
}
}
}
- The job always fails, with an error regarding the missing SNMP community string.
- If you define the snmp credentials (which the doc states not to when using the credential ProfileName), the device will be imported fine.
- The credential profile name that is being used is the exact same as defined in Inventory > Device Management > Credential Profile.
This should be working but there seems to be a regression in PI 3.0. created CSCuw38628 to track this issue
Comments
0 comments
Please sign in to leave a comment.