Bulk Operation API

Use the Bulk Operation API to retrieve the current inventory file information, update the IP address or hostnames, rebuild Virtual Machines (VMs), perform full synchronization, and complete the upgrade.

Operations

  • create: Update IP address or hostnames, rebuild (if chosen) VMs in the inventory, perform full synchronization, and complete the upgrade using the URL:

    https://<server>:<serverport>/unifiedconfig/config/machineinventory/bulkoperation

  • get: Returns a list of machines in the CSV format based on the response parameters, using the URL:

    https://<server>/unifiedconfig/config/machineinventory/bulkoperation/template? datacenter=<sitename>&category=<category>&<peripheralSet=<peripheralSet name>

Response Parameters for get

  • datacenter: The name of the datacenter. For example: Main. This field is case-sensitive. Use Main to refer to Main site in 4000 and 12000 Agent deployments and Core to refer to Main site in 2000 Agent deployments.

  • category: The machine category. Supported values are core, optional, or peripheral.

  • peripheralSet: The name of the peripheral set. This parameter is mandatory only for Packaged CCE 4000 or 12000 Agent deployments, if the category is PERIPHERAL.

Note
  • To get the polling status of any task, go to GET

    /unifiedconfig/config/machineinventory/bulkoperation/results?taskId=<task_id>

    You can get the polling status only if create operation is performed asynchronously by including the query parameter async=true.

Payload for Create

Payload for Inventory Update:

Note

The properties for inventory update also include datacenter, category, and peripheralSet1. For more information, see Response Parameters for get.

Payload for Full Synchronization:

operation: The type of operation. Supported value is:

FULL_SYNC: triggers a solution synchronization after each EDMT run during Technology Refresh upgrade.

Payload for Upgrade Completion:
  • operation: The type of operation. Supported values are:
    • VALIDATE_UPGRADE_COMPLETION: validates the IP address, hostnames, and synchronization status of all machines in the inventory. Also validates the VM Hosts in 2000 Agent deployments.

    • UPGRADE_COMPLETION: completes Technology Refresh upgrade on the staged server.

Example Create Request for 4000 and 12000 Agent Deployments

Code Snippet
Copy
<inventoryUpdateFile>
    <name>main_ps1_peripheral_inventory.csv</name>
    <operation>UPDATE</operation>
    <datacenter>Main</datacenter>
    <category>peripheral</category>
    <content>
	name,machineType,publicAddress,privateAddress,side,newPublicAddress,newPrivateAddress,connectionInfo,isReinstalled
	TR1-PG1A,CCE_PG,10.10.10.26,10.10.20.26,sideA,10.10.10.26,10.10.20.26,,Yes
	TR1-PG1B,CCE_PG,10.10.10.27,10.10.20.27,sideB,10.10.10.27,10.10.20.27,,Yes
    </content>
    <peripheralSetName>ps1</peripheralSetName>
</inventoryUpdateFile>

Example Create Response for 4000 and 12000 Agent Deployments

Code Snippet
Copy
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<results>
    <state>SUCCEEDED</state>
    <statuses>
        <status>
            <state>SUCCEEDED</state>
            <name>LoggerUpdateTask_sideA</name>
        </status>
        <status>
            <state>SUCCEEDED</state>
            <name>LoggerUpdateTask_sideB</name>
        </status>
        <status>
            <state>SUCCEEDED</state>
            <name>RouterUpdateTask_sideA</name>
        </status>
        <status>
            <state>SUCCEEDED</state>
            <name>RouterUpdateTask_sideB</name>
        </status>
        <status>
            <state>SUCCEEDED</state>
            <name>AwUpdateTask</name>
        </status>
        <status>
            <state>SUCCEEDED</state>
            <name>InventoryDBUpdateTask</name>
        </status>
    </statuses>
</results>
1 Applicable only for 4000 and 12000 Agent deployments.