0
votes

I'm trying to fetch processor,network,hypervisor,physical details of VM's through SoftLayer API unfortunately relational datatypes are not working. Referring to the following link https://softlayer.github.io/reference/datatypes/SoftLayer_Virtual_Guest/#controlPanel

When i tried using host datatype doesn't throw any error rather no result regarding host information

Contacted SoftLayer through ticket and they don't provide much support for SoftLayer API. Suggested to post queries here.

1

1 Answers

0
votes

The control panel relational datatype is working correctly, if you do not obtain any result you may not have ordered this item in your VM, the host relational datatype is not working it seems a SoftLayer issue, you can report this issue by opening a SoftLayer ticket.

You can use this rest api to get the details of a VM such as its physical parts and its software.

https://[username]:[apiKey]@api.softlayer.com/rest/v3/SoftLayer_Virtual_Guest/[virtualGuestId]/getObject?objectMask=mask[id,allowedHost[credential],backendNetworkComponents[ipAddressBindings,primarySubnet[networkVlan[primaryRouter[datacenter]]]],bandwidthAllocation,billingItem[id,item],blockDevices[device,diskImage[capacity,localDiskFlag,type.name,billingItem.categoryCode,units],mountType],datacenter[id,longName,name],dedicatedAccountHostOnlyFlag,dedicatedHost[backendRouter, id, name],domain,firewallServiceComponent,frontendNetworkComponents[ipAddressBindings,primaryVersion6IpAddressRecord,primarySubnet[networkVlan[dedicatedFirewallFlag,networkVlanFirewall,primaryRouter[datacenter]]]],fullyQualifiedDomainName,globalIdentifier,hostname,hourlyBillingFlag,lastOperatingSystemReload,lastPowerStateId,localDiskFlag,maxCpu,maxCpuUnits,maxMemory,monitoringServiceComponent,networkComponents[subnets],networkVlans.firewallInterfaceCount,postInstallScriptUri,primaryBackendIpAddress,primaryIpAddress,primaryNetworkComponent,privateNetworkOnlyFlag,provisionDate,softwareComponents[passwords[createDate,modifyDate,notes,password,username],softwareLicense[softwareDescription[features.keyName,manufacturer,name,operatingSystem,version]]],startCpus,status,statusId,type,uuid]

Reference:

https://softlayer.github.io/reference/datatypes/SoftLayer_Virtual_Guest/