ibm-cloud-infrastructure

Mask and filter are not working when using the SoftLayer API

五迷三道 提交于 2020-01-04 13:26:55
问题 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

softlayer api user password update

雨燕双飞 提交于 2020-01-02 17:19:44
问题 I am trying to use the SoftLayer API Rest method to update a user VPN password but having no luck. I must be structuring my call incorrectly and was hoping someone had a working example or input on why my call is failing. I've tried many ways but with no luck. The api user I am using has the needed priv level, my key is valid (works on other methods etc..) My method is: def set_user_vpn_password(self): ''' method to set a user's vpn password ''' myPass = { "password" : "P@s$w0rd!?" } r =

New items for SoftLayer virtual server order?

六月ゝ 毕业季﹏ 提交于 2019-12-31 06:08:11
问题 It turns out there are new items to order for virtual servers. Here is one I got from the API: {"currentPriceFlag"=>"", "hourlyRecurringFee"=>".918", "id"=>172553, "itemId"=>6521, "laborFee"=>"0", "locationGroupId"=>"", "onSaleFlag"=>"", "oneTimeFee"=>"0", "quantity"=>"", "recurringFee"=>"609", "setupFee"=>"0", "sort"=>0, "item"=> {"capacity"=>"56", "description"=>"56 x 2.0 GHz Cores", "id"=>6521, "itemTaxCategoryId"=>166, "keyName"=>"GUEST_CORES_56", "softwareDescriptionId"=>"", "units"=>

Impersonating another user in SoftLayer

两盒软妹~` 提交于 2019-12-31 05:35:08
问题 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

How do you upgrade a Snapshot space on Endurance storage using SoftLayer API?

Deadly 提交于 2019-12-31 04:35:26
问题 Using SoftLayer API, I've ordered an Endurance Block Storage and it's there. Now I am trying to write a PHP code that will use SoftLayer API to modify Snapshot space, but I keep getting this error: There was an error querying the SoftLayer API: Price does not have an id. And I am not sure what the issue is. Below is bit of code that I am using to do this: $clientServer = SoftLayer_XmlrpcClient::getClient('SoftLayer_Product_Order', null, userID, apiKey); $clientServer->verifyOrder($order); And

What is relationShip between IOPS values Id and in Storage Size ID in Endurance Storage .?

你。 提交于 2019-12-30 12:04:07
问题 I got confused while placing order for Endurance. As we have these three values for Storage Package :- 0.25_IOPS_PER_GB = 45074 2_IOPS_PER_GB = 45084 4_IOPS_PER_GB = 45094 There Ids are fixed but when we select one of these while placing order we get list of storage size which is almost same in all of 3 cases. Now suppose for 100 GB storage space for all of three packages (0.25, 2, and 4) Ids for 100 GB will be different or not..? If these are different it means there exist a relation between

Retrieving user metadata about a provisioned SoftLayer server comes back null

余生长醉 提交于 2019-12-25 18:25:47
问题 I'm trying to retrieve the user meta information for each machine consistently but what I'm finding is most of my machines are missing this data. I'd like to understand better what is required for this user data to be there. I'm curious if a server can be requested and provisioned without requiring user information (e.g. an API call to order a server and no user data is given). Or whether I am missing something in how I retrieve this information. Here is the basic ruby program I'm running:

SoftLayer API: How to get advanced monitoring and firewall in the account from order billingId

雨燕双飞 提交于 2019-12-25 14:26:00
问题 After ordering Advanced Monitoring - Premium package using SoftLayer API " SoftLayer_Container_Product_Order_Monitoring_Package " and Firewall on Vlans with SoftLayer API " SoftLayer_Container_Product_Order_Network_Protection_Firewall_Dedicated ", I can get the SoftLayer_Billing_Item id value from each order. How can I retrieve the monitoring device and the firewall device that I ordered on the SoftLayer_Account using Billing_Item id ? I looked up methods on SoftLayer_Account , there doesn't

Adding SSH keys to Softlayer JSON order for Bare metal

和自甴很熟 提交于 2019-12-25 13:43:32
问题 I was wondering how to add ssh keys that are within softlayer to be added to a json bare metal order. Through the GUI, it would be added at the end of the order before you click submit wondering if it's just with: productOrder = { "quantity": 1, "location": 1234, "packageId": 1234, "sshKeyIds": 1234, "hardware": [ ... I did a verifyOrder() but not sure if it's correct 回答1: If you are using: SoftLayer_Product_Order::placeOrder method, take a look the following example: """ Order a new server

Softlayer api: exception The location provided for this order is invalid

点点圈 提交于 2019-12-25 10:49:53
问题 background Use sl_product_order.placeOrder api to order a vsi. Order params: {'prices': [{'id': 1644}, {'id': 1640}, {'id': 2202}, {'id': 272}, {'id': 45466}, {'id': 905}, {'id': 21}, {'id': 57}, {'id': 55}, {'id': 58}, {'id': 420}, {'id': 418}, {'id': 17129}, {'id': 1800}], 'location': '224092', 'packageId': 835, 'complexType': 'SoftLayer_Container_Product_Order_Virtual_Guest', 'useHourlyPricing': True, 'virtualGuests': [{'domain': 'xxx.com', 'hostname': 'xxx-rkgw77q5'}], 'quantity': 1}