An operation to add or update multiple devices using a batch job
Credential Profiles Support
- There is limitation on attaching imported device to the credential profile. If credentialProfileName parameter is given and is not empty, this device should not contain any other credential parameters. Parameters allowed to be used with credentialProfileName are: ipAddress, networkMask, and udfs. If other credential parameters are set along with credentialProfileName they will be ignored.
User Defined Field Support
- This service supports importing and exporting devices with User Defined Field (UDF).
- The maximum length of a UDF value is 255 characters; devices which have UDF values greater than 255 characters will be ignored.
- Each bulk Import service request overwrites existing UDF records. To update the UDF of a device, follow the steps:
- Retrieve the full list UDFs of the device using devices/exportDevices service
- Find the UDF entry to be updated in the list
- Assign the new value of the entry
- Use devices/bulkImport service to save the change
Since Product Version: 2.2
Resource URL
/webacs/api/v1/op/devices/bulkImportRequest Payload Parameters
Type | Attribute Name | Description |
---|---|---|
devices |
A list of devices to be imported |
Response Parameters
Type | Attribute Name | Description |
---|---|---|
String |
jobName |
The job name created by the bulk import operation. The job name can be referred to check the status of the job using job management services |
String |
message |
A message returned from the bulk import operation |
Sample Payloads
Sample payloads are for information only. They are automatically generated and the values included may not be representative of actual valid data values.
Sample XML Request Payload
https://172.25.123.114/webacs/api/v1/op/devices/bulkImport
<?xml version="1.0" ?> <devicesImport> <devices> <device> <cliEnablePassword>String value</cliEnablePassword> <cliPassword>String value</cliPassword> <cliRetries>String value</cliRetries> <cliTimeout>String value</cliTimeout> <cliUsername>String value</cliUsername> <credentialProfileName>String value</credentialProfileName> <httpConfigPassword>String value</httpConfigPassword> <httpConfigUsername>String value</httpConfigUsername> <httpMonitorPassword>String value</httpMonitorPassword> <httpMonitorUsername>String value</httpMonitorUsername> <httpPort>String value</httpPort> <httpServer>String value</httpServer> <ipAddress>String value</ipAddress> <networkMask>String value</networkMask> <protocol>String value</protocol> <snmpCommunity>String value</snmpCommunity> <snmpReadCommunity>String value</snmpReadCommunity> <snmpRetries>String value</snmpRetries> <snmpTimeout>String value</snmpTimeout> <snmpVersion>String value</snmpVersion> <snmpWriteCommunity>String value</snmpWriteCommunity> <snmpv3AuthPassword>String value</snmpv3AuthPassword> <snmpv3AuthType>String value</snmpv3AuthType> <snmpv3PrivacyPassword>String value</snmpv3PrivacyPassword> <snmpv3PrivacyType>String value</snmpv3PrivacyType> <snmpv3UserName>String value</snmpv3UserName> <udfs> <udf> <name>String value</name> <value>String value</value> </udf> </udfs> </device> </devices> </devicesImport>
Sample JSON Request Payload
https://172.25.123.114/webacs/api/v1/op/devices/bulkImport.json
{ "devicesImport" : { "devices" : { "device" : { "cliEnablePassword" : "String value", "cliPassword" : "String value", "cliRetries" : "String value", "cliTimeout" : "String value", "cliUsername" : "String value", "credentialProfileName" : "String value", "httpConfigPassword" : "String value", "httpConfigUsername" : "String value", "httpMonitorPassword" : "String value", "httpMonitorUsername" : "String value", "httpPort" : "String value", "httpServer" : "String value", "ipAddress" : "String value", "networkMask" : "String value", "protocol" : "String value", "snmpCommunity" : "String value", "snmpReadCommunity" : "String value", "snmpRetries" : "String value", "snmpTimeout" : "String value", "snmpVersion" : "String value", "snmpWriteCommunity" : "String value", "snmpv3AuthPassword" : "String value", "snmpv3AuthType" : "String value", "snmpv3PrivacyPassword" : "String value", "snmpv3PrivacyType" : "String value", "snmpv3UserName" : "String value", "udfs" : { "udf" : { "name" : "String value", "value" : "String value" } } } } } }
Sample XML Response Payload
https://172.25.123.114/webacs/api/v1/op/devices/bulkImport
<?xml version="1.0" ?> <mgmtResponse responseType="operation" requestUrl="../../../../pages/common/login.jsp.html" rootUrl="https://172.25.123.114/webacs/api/v1/op/"> <bulkImportResult> <jobName>String value</jobName> <message>String value</message> </bulkImportResult> </mgmtResponse>
Sample JSON Response Payload
https://172.25.123.114/webacs/api/v1/op/devices/bulkImport.json
{ "mgmtResponse" : { "@responseType" : "operation", "@requestUrl" : "https : \/\/172.25.123.114\/webacs\/api\/v1\/op\/devices\/bulkImport", "@rootUrl" : "https : \/\/172.25.123.114\/webacs\/api\/v1\/op\/", "bulkImportResult" : { "jobName" : "String value", "message" : "String value" } } }