I am trying to implement Modify Device Configuration using Softlayer java API. This process will be a similar process as purchase order. Is there any specific API to upgrade and downgrade device? I found getUpgradeRequest() for virtual guest. If you provide any sample code or API guide will be helpful. Thank you Modify Device Configuration Page
for (Guest guest : Account.service(client).getVirtualGuests()){
if(guest.getFullyQualifiedDomainName().equals(deviceName)) {
Request rqt = Guest.service(client, guest.getId()).getUpgradeRequest();
rqt.setId(id);
rqt.setOrderId(orderId);
}
}
Below is a Java example to upgrade a VSI. For Example:
How to get the available prices for the Virtual guest to upgrade? Execute:
References:
Other examples:
Regards