ibm-cloud-infrastructure

SoftLayer API to know and total and available IPs in a VLAN

末鹿安然 提交于 2019-12-02 18:16:57
问题 SoftLayer API to know and total and available IPs in a VLAN Hello, Which API can be used to know the total IPs and the used/usable IPs of a VLAN if I know the VLAN ID . One way I could figure out is I can get subnets of a VLAN and then in subnet details I can see total and usable IPs with "totalIpAddresses,usableIpAddressCount" attributes . But then I will have to get sum of total and usable IPs for a VLAN since a VLAN has multiple subnets. Not sure if this is the correct way. Thanks 回答1: To

how to order SoftLayer_Virtual_ReservedCapacityGroup

不想你离开。 提交于 2019-12-02 17:48:50
问题 recently, IBM Bluemix releases Reserved Virtual Server(SoftLayer_Virtual_ReservedCapacityGroup). We checked a relative API. SoftLayer_Virtual_ReservedCapacityGroup SoftLayer_Virtual_ReservedCapacityGroup_Instance SoftLayer_Account::getActiveReservedCapacityAgreements SoftLayer_Virtual_Guest_Status(1009) And we can't find how to create reserved capacity group. we are using API(placeorder) for order. Looking this api, there are containers about each product. but there is no container about

Modify Device Configuration

喜夏-厌秋 提交于 2019-12-02 15:10:01
问题 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

Resource Data In SoftLayer

非 Y 不嫁゛ 提交于 2019-12-02 15:01:17
问题 I'm developing resource graph such as Bandwidth, usage, memory, and cpu in detailed device using SL java client. Data retrieved from api are different from the graph on control portal. These are data from graph on control.softlayer.com Date CPU Value 2016-03-03T10:00:00-06:00 0.67 2016-03-03T10:30:00-06:00 0.86 2016-03-03T11:00:00-06:00 0.84 2016-03-03T11:30:00-06:00 1 2016-03-03T12:00:00-06:00 0.82 These are data from SL API. getCount() is CPU value. getType() : cpu0 getCounter() : 0

ObjectFilter in SoftLayer doesn't work

扶醉桌前 提交于 2019-12-02 13:32:14
问题 I find ObjectFilter doesn't work in SoftLayer. I even tried the example provided in the SoftLayer webpage here: https://sldn.softlayer.com/article/object-filters REST: List the ID and hostname of all servers in dal05 https://api.softlayer.com/rest/v3/SoftLayer_Account/getVirtualGuests?objectMask=mask[id,hostname]&objectFilter={"datacenter":{"name":{"operation":"dal05"}}} When I ran this command, it still returns all the virtual guests, regardless what data center that virtual guest belongs to

Filter parameters to POST verify and place order request for Performance storage

无人久伴 提交于 2019-12-02 13:15:55
I am trying to do BPM and SoftLayer integration using Java REST client. On my initial analysis(as well as help form stack overflow),I found Step 1) we to get getPriceItem list to have all IDs for next request. https://username:api_key@api.softlayer.com/rest/v3/SoftLayer_Product_Package/2/getItemPrices?objectMask=mask[id,item[keyName,description],pricingLocationGroup[locations[id, name, longName]]] and then do verify and place order POST call using respective APIs. I am stucked on Step 1) as filtering here seems to be bit tricky. I am getting a json response of over 20000 lines. I wanted to

Getting bandWidth data in SL

别来无恙 提交于 2019-12-02 13:14:15
I am trying to get a bandwidth usage using Java Client API of Softlayer. The result of the API below is the throughput of bandwidth. Is there any API getting a bandwidth usage data with java ? List<Data> dataList = Guest.service(client, deviceID).getBandwidthDataByDate(startDate, endDate, "public"); // throuput Pls advice me why the bandwidth throughput data with this API are different from the data of control.softlayer.com. Is there any critical factor to get precise data? Try this code: import java.util.ArrayList; import java.util.GregorianCalendar; import java.util.List; import com.google

Impersonating another user in SoftLayer

北城以北 提交于 2019-12-02 12:33:46
We have an agent account in SoftLayer through which multiple Customer accounts have been created. Im trying to do some operations on the Customer account but the API isnt allowing any operations to be done since my SoftLayer Python Client uses the username/password of the agent account. I browsed through a lot of posts and impersonating as the "SoftLayer_User_Customer" of the customer account was given as a possible solution but there isnt much detail as to how to use it. I was able to get a Token using the getImpersanationToken call, but Im unsure how to use this. Are there any examples of

how to order SoftLayer_Virtual_ReservedCapacityGroup

邮差的信 提交于 2019-12-02 11:53:30
recently, IBM Bluemix releases Reserved Virtual Server(SoftLayer_Virtual_ReservedCapacityGroup). We checked a relative API. SoftLayer_Virtual_ReservedCapacityGroup SoftLayer_Virtual_ReservedCapacityGroup_Instance SoftLayer_Account::getActiveReservedCapacityAgreements SoftLayer_Virtual_Guest_Status(1009) And we can't find how to create reserved capacity group. we are using API( placeorder ) for order. Looking this api, there are containers about each product. but there is no container about reserved capacity group. To order a SoftLayer_Virtual_ReservedCapacityGroup you can use the following

How to get order username and provisionDate for all SoftLayer machines using Ruby?

跟風遠走 提交于 2019-12-02 10:58:49
Using Ruby I'm making a call like: client = SoftLayer::Client.new(:username => user, :api_key => api_key, :timeout => 999999) client['Account'].object_mask("mask[id, hostname, fullyQualifiedDomainName, provisionDate, datacenter[name], billingItem[recurringFee, associatedChildren[recurringFee], orderItem[description, order[userRecord[username], id]]], tagReferences[tagId, tag[name]], primaryIpAddress, primaryBackendIpAddress]").getHardware But only some machines return a provisionDate and only some return orderItem information. How can I consistently get this information for each machine? What