Given the Primary IP Address of a device, modify the device's AlternateName field to a user-specified string.
I would like to do so with either the CAPC or DA API. However, I'm having trouble understanding the docops for the PC API changing alias name (https://techdocs.broadcom.com/content/broadcom/techdocs/us/en/ca-enterprise-software/it-operations-management/performance-management/3-5/apis/performance-center-rest-web-services/devices-web-service/set-the-alias-name-for-a-device.html).
Release : 3.5
Component : CA Performance Center
You can use the following command to update the alias/alternatename field by using the IP. Just replace <DOMAIN_ID> and <IP_VALUE> with the actual domain id and ip addtess.
curl -v -X PUT -H 'Content-Type: application/xml' -u admin:admin http://<PC_SYSTEM>:8181/pc/center/webservice/devices/domainItemId/<DOMAIN_ID>/<IP_VALU>/aliasName/<NEW_ALIAS>