I am implementing the detail information for auto scaling using Java API. How can I get a detailed information of member configuration. Please refer to the fields in red box in the attached picture. I could get a detailed information. For example, I could get the operation reference code, which is CENTOS_6_64, but how can I get the long type of description like CentOS 6.x - Minimal Install (64bit).
相关问题
- Apache web server timeout after 60 seconds
- SoftLayer API : How to get NetScaler list in Softl
- Getting bandWidth data in SL
- Password Update in SL
- Impersonating another user in SoftLayer
相关文章
- Getting bandWidth data in SL
- Password Update in SL
- Impersonating another user in SoftLayer
- New items for SoftLayer virtual server order?
- No Data for IOPS while Selecting Storage Size 250G
- how to order SoftLayer_Virtual_ReservedCapacityGro
- How do you upgrade a Snapshot space on Endurance s
- ObjectFilter in SoftLayer doesn't work
try using this object Mask
here an example using python:
But if you try to copy the same information as the portal, you really will have fun :).
Regarding the OS that information cannot be get via the SoftLayer_Scale_Group service, you need to use the SoftLayer_Virtual_Guest::getCreateObjectOptions method. If you see the result of the method you will see this:
As you can see the result contains the "operatingSystemReferenceCode" and the description that you want to, so only need to look up the record which match with the "operatingSystemReferenceCode" value that you got using the SoftLayer_Scale_Group::getObject method.
Regarding the network private or public, here you only can have the scenarios: 1.- public and private has been set. 2.- only private has been set.
to determinate that you have to check the "privateNetworkOnlyFlag" property: 1.- if the property is true, the network is private 2.- if the property has not been set (the default value is false) so the network is public and private.
In order to get the same description as the portal you need to use the SoftLayer_Virtual_Guest::getCreateObjectOptions method, this is the result that you got:
As you can see the idea is the same as with the operating system.
And regard the datacenter "First Available", I guess that when you call the SoftLayer_Scale_Group::getObject I guess that the virtualGuestMemberTemplate.datacenter property is empty or does not exist, if you see that you can display the value as "First Available".
Regards
This is the testing code to get a network flag. The flag returns "true", but the Portal says "Public & Private Network".