ibm-cloud-infrastructure

Softlayer Api: Exception: Invalid data on the order for property: packageId. Package (835) requires a preset configuration

人走茶凉 提交于 2020-01-07 04:43:26
问题 background Use sl_product_order.placeOrder api to order a vsi. 'dataCenter': 'ams03' exception SoftLayerAPIError(SoftLayer_Exception_Order_InvalidData): Invalid data on the order for property: packageId. Package (835) requires a preset configuration. question Package (835) requires a preset configuration means what? How can I check which param is invalid ? 回答1: Package: 835 (Public Virtual Server) is a new package that will be released very soon, meanwhile I recommend to continue using

Using object filters with SoftLayer Ruby API

血红的双手。 提交于 2020-01-07 03:54:14
问题 When I try to run the following program, the object filter doesn't seem to work. I still get invoices which don't meet the filter criteria. Can someone help me understand what I am doing wrong? Unfortunately there is practically no documentation I could find on using object filters in Ruby Thanks in advance require 'rubygems' require 'softlayer_api' require 'pp' begin date = DateTime.new(2015,11,1) account_service = SoftLayer::Service.new("SoftLayer_Account",:username => "USER", :api_key =>

softlayer API return Permission denied to getReverseDomainRecords

不想你离开。 提交于 2020-01-07 02:58:04
问题 I was Call getReverseDomainRecords of subnet but ruturn "Permission denied to getReverseDomainRecords. ", which permissions are need for this user for call api? (com.softlayer.api.ApiException$Internal: Permission denied to getReverseDomainRecords.) 回答1: You need to add the following permission to the user "Manage DNS, Reverse DNS and WHOIS" . From Portal, please go to: Users> select the user>Portal Permissions> services . To add permissions to a user via API, please review: Failed to add

Softlayer API: Account destroy?

两盒软妹~` 提交于 2020-01-07 02:42:19
问题 Now I'm developing a project about softlayer api, I create a child account by SoftLayer_Brand::createCustomerAccount. Then I wan't to destroy the child account by softlayer api. Is there certain method to destroy? Or make the account does not work by softlayer api? regards~ 回答1: http://sldn.softlayer.com/reference/services/SoftLayer_Brand there you can find all the available methods for brands, I am afraid you cannot cancel an account that taks only can be performed by softlayer employee, so

What are valid IOPS values for ordering File Storage via the SoftLayer API

*爱你&永不变心* 提交于 2020-01-07 01:50:30
问题 While attempting to use the Python script provided as the answer for Is it possible to order/configure IBM SoftLayer file storage using slcli or Python API?, I keep getting the following error: "ValueError: The IOPS value: 125, is not valid for the storage space: 500GB." I got this error for IOPS values of 100, 125, 200, 250, 500, 1000, 2000, 2500, 3000, 5000 and 6000. I am trying this for the San Jose data center (sjc01). What is the valid value for IOPS for 500GB of file storage? Thanks in

Softlayer rest call giving multiple entries for invoice in json response when object filter is applied to relational properties

百般思念 提交于 2020-01-07 01:18:26
问题 Using below rest call, I am seeing multiple records for a single invoice. I realized it repeated for as many items are there in that invoice. Rest request: https://api.softlayer.com/rest/v3/SoftLayer_Account/<Account-ID>/getInvoices?objectFilter={"invoices":{"items":{"billingItem":{"hourlyFlag":{"operation":"0"}}}}} to be replaced by actual account number in Softlayer. Actual result should be, it should show one single record for one invoice. 回答1: The invoice will be displayed the times that

Object Storage Access Controls API

时间秒杀一切 提交于 2020-01-06 21:08:24
问题 I have looked all through the SoftLayer API documentation, but I cannot find any reference to how one manages which portal users may access the Object Storage authentication endpoints to get the access token. 回答1: if you wish an user have access to the object storage you have to grant the following permissions: "Manage CDN Account", "Manage CDN File Transfer" and "Manage Storage" Remove the permissions above in order to not let your user to access the object storage see: http://knowledgelayer

Getting 500 Internal Server Error from Account.getVirtualGuests()

拟墨画扇 提交于 2020-01-06 15:18:52
问题 I have been using a particular method for the past year and a half for loading the virtual guests from our account. Sometime in the past week, it broken. The following code (using ruby gem 3.1.1) returns a 500 Internal Server Error: softlayer_client = SoftLayer::Client.new() obj_svc = softlayer_client['Account'] obj_svc = obj_svc.object_mask('mask[ id,tagReferences ]') result = obj_svc.getVirtualGuests() result.each do |pre_obj| puts pre_obj.inspect end But this does not: softlayer_client =

Can subnets be tagged (besides notes)?

泪湿孤枕 提交于 2020-01-06 03:08:46
问题 getTagReferences service of SoftLayer_Tag makes it very clear which objects may be tagged. Is it possibly (or will it be possible in the future) to tag subnets other than the notes section? Thank you. 回答1: Unfortunately it is not possible to set tags for Network Subnets. You can sent an email to PortalFeedback@softlayer.com, in order that this option can be considered to be implemented. 来源: https://stackoverflow.com/questions/37079728/can-subnets-be-tagged-besides-notes

Mask and filter are not working when using the SoftLayer API

久未见 提交于 2020-01-04 13:30:02
问题 When I add billingItemFlag to my mask and filter it is missing in the results. I am using the SoftLayer-go api from the SoftLayer GitHub account. Is my filter or mask wrong? Please consider the following code: const mask string = "id;hostname;domain;billingItemFlag;billingItem" var filters = filter.Build( filter.Path("billingItemFlag").NotNull(), filter.Path("billingItem").NotNull(), ) accountService := services.GetAccountService(softlayerSession) hardware, err := accountService.Filter