ibm-cloud-infrastructure

How to get the proper list of SoftLayer datacenters for a given package?

☆樱花仙子☆ 提交于 2019-12-24 01:44:59
问题 I'm building an application for ordering hardware and I've seen that I can't get the same list of available datacenters for a given package id. I'm currently using getRegions() which it is supposed to return the list of datacenter where the given package is available. However, I have seen that it differs from what I can see in the SoftLayer portal. For instance, for the package 253, I get 28 datacenters. However, if I try to place and order manually from the SL portal, those 28 are not

Error when using SoftLayer Ruby API to specific additional disks with a virtual server

╄→尐↘猪︶ㄣ 提交于 2019-12-23 19:56:28
问题 We are seeing same issue with the SoftLayer Ruby API as in this post: CLI - Error when disk parameter is in use This code can reproduce the issue: #!/usr/bin/ruby require 'softlayer_api' def image_template_id(sl_client, image_template_name) templates = sl_client['Account'].getBlockDeviceTemplateGroups templates.each do | template | if image_template_name == template['name'] return SoftLayer::ImageTemplate.template_with_id(template['id'], {:client => sl_client}) end end return nil end sl

SoftLayer API : How to get NetScaler list in Softlayer

走远了吗. 提交于 2019-12-23 05:07:13
问题 I am developing a cloud portal using SoftLayer java client Lib. Regarding N/W part, I'm looking for API that can retrieve the list of load balance. I succeeded to do it through, SoftLayer_Network_Application_Delivery_Controller_LoadBalancer_Service /[Service_id]/getObject?objectMask=status -425437/getObject?objectMask=object with service ID from SoftLayer_Account/getAdcLoadBalancers? objectMask=adcLoadBalancers.virtualServers.serviceGroups.services.id However I couldn't only retrieve the list

SoftLayer REST API get Bandwidth Data By Date

泄露秘密 提交于 2019-12-23 04:40:24
问题 I have a question regarding the use of the getBandwidthDataByDate request using the SoftLayer REST API . In the documentation it lists 3 parameters for this request, but it's a GET request. Does anyone know how to make this request and/or have an example? https://api.softlayer.com/rest/v3/SoftLayer_Virtual_Guest/getBandwidthDataByDate/'device_id'.json I'm not sure where to add the parameters here.(startDateTime, endDateTime, networkType) And what does the dateTime object look like? Thanks 回答1

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

一曲冷凌霜 提交于 2019-12-20 06:42:27
问题 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

Part of Softlayer bulk VMI order gets provisioned into wrong VLAN despite specified

醉酒当歌 提交于 2019-12-20 06:38:28
问题 I am using the Softlayer API and a python script to order virtual machines within my SL account. Within the script I define a VLAN in which the machines should be placed. Within my account I can see a /26 private subnet within this VLAN. The script works fine when I deploy 2-3 machines at a time. However if I use the exact same script to deploy 60 VMs, somehow most of the machines will be placed into a new VLAN with different IP addresses, even though the specified VLAN was empty during the

Performance storage We are selecting Storage size 250/500GB but no data in IOPS through REST API

只谈情不闲聊 提交于 2019-12-20 06:10:40
问题 I am working on performance storage. When I am selecting Storage Size 250/500 then no data In IOPS. When I was select storage size 100/20/80/1000/2000gb then I am getting IOPS. I am facing problem only 250/500gb . this is the API i am using https://[username]:[apikey]@api.softlayer.com/rest/v3.1/SoftLayer_Product_Package/222/getItemPrices?objectFilter={"itemPrices": { "attributes": { "value": { "operation": 20 } }, "categories": { "categoryCode": { "operation": "performance_storage_iops" } },

Softlayer : tagging device

偶尔善良 提交于 2019-12-20 04:53:55
问题 I couldn't find any option to Tag a device while creating the device in Customer portal, so I am Using SoftLayer_Tag::setTags Rest API to tag a device: POST: https://Username:API_KEY@api.softlayer.com/rest/v3/SoftLayer_Tag/setTags.json BODY: resourceTableId : 29756959 keyName : march22 But getting error saying: { "error": "You do not have permissions to tag this object.", "code": "SoftLayer_Exception_PermissionDenied" } 回答1: There is a mistake in the way that you are sending the body( tags

Sample code for ordering an EVault backup in SoftLayer

北战南征 提交于 2019-12-20 04:50:36
问题 Does anyone have or can provide a sample code for ordering an EVault backup in SoftLayer? It looks little different from regular ordering where you select the item to order, then pick some options then make a verifyOrder() call. For EVault, I first have to go to one of the server devices then add (kind of like an upgrade, but different because it's not listed as upgradable item). When I try to see what SoftLayer UI calls, it does a POST and passes whole bunch of data as request body. I

I need to create a softlayer network firewall rule through REST API

ぐ巨炮叔叔 提交于 2019-12-18 09:49:09
问题 I need to create a softlayer network firewall rule through REST API. I have referred the Softlayer documents but still I'm unabe to create a firewall rule. Please Advice. 回答1: Please try this REST request to add Firewall rules (SoftLayer_Network_Firewall_Update_Request::createObject): URL: https://[username]:[apikey]@api.softlayer.com/rest/v3/SoftLayer_Network_Firewall_Update_Request/createObject Method: POST { "parameters": [ { "firewallContextAccessControlListId": 2854, "rules": [ { "action