ibm-cloud-infrastructure

How to find location of an EVault using SoftLayer API?

三世轮回 提交于 2019-12-02 10:22:35
I see there is SoftLayer_Account::getEvaultNetworkStorage() to get a list of my EVault storages. However, using the information that I have, I cannot figure out the location of a particular EVault. Below is the type of information I get from getEvaultNetworkStorage(): { "accountId" : 7xxx, "capacityGb" : 30, "createDate" : "2016-xxx", "guestId" : 14xxx, "hardwareId" : null, "hostId" : 14xxx, "id" : 83xxx, "nasType" : "EVAULT", "password" : "Bxxx", "serviceProviderId" : 1, "serviceResourceBackendIpAddress" : "ev-xxx.service.softlayer.com", "serviceResourceName" : "ev-xxx.service.softlayer.com",

New items for SoftLayer virtual server order?

时间秒杀一切 提交于 2019-12-02 10:08:23
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"=>"CORE", "upgradeItemId"=>""}}, But when I tried to use it, it shows something like: 56 x 2.0 GHz Cores is

No Data for IOPS while Selecting Storage Size 250GB or 500GB in Performance Storage

橙三吉。 提交于 2019-12-02 09:37:54
I am trying to place order in performance storage then API is returning null for IOPS when 250/500GB is selected. Please make a needful favour. API that I am using to get the IOPS is given below: https://[username]:[apiKey]@api.softlayer.com/rest/v3.1/SoftLayer_Product_Package/222/getItemPrices?objectFilter={"itemPrices": { "attributes": { "value": { "operation": 250 } }, "categories": { "categoryCode": { "operation": "performance_storage_iops" } }, "locationGroupId": { "operation": "is null" } } } Please make a needful favour. I'm able to get data for IOPS selecting storage size 250GB or

Bandwidth summary per server

廉价感情. 提交于 2019-12-02 08:25:32
问题 I am trying to get the bandwidth data for all the softlayer servers under my account. Thanks to account_servers.rb I am able to get the server id for all the servers. Now I would like to get the Bandwidth used by the servers for a particular time frame. The data that I am interested is http://sldn.softlayer.com/reference/datatypes/SoftLayer_Metric_Tracking_Object_Bandwidth_Summary . I tried to get information using softlayer_client.service_named("Metric_Tracking_Object_Bandwidth_Summary") .

Failed to add permission to a SoftLayer user ID

一世执手 提交于 2019-12-02 08:11:24
curl -D - -X POST -d @permissionSLUser.in.json -o "permissionSLUser.out.json" "https://someuser:somepassword@api.softlayer.com/rest/v3/SoftLayer_User_Customer/1234/addPortalPermission.json" permissionSLUser.in.json contains: { "parameters": [ { "key": "T_1" } ] } permissionSLUser.out.json contains: "error":"You may not add permissions that the parent does not possess to this account.","code":"SoftLayer_Exception_Public" Update 1 I am certain that the parent of 1234 has T_1 permission, so I don't understand why I am getting this permission error. Would anyone have any idea why? Thanks. Please

SoftLayer getUsers by userStatusID

会有一股神秘感。 提交于 2019-12-02 08:00:40
问题 I am trying to retrieve SoftLayer user profiles by userStatusId. I am using URL: <curl -X GET -k -n "https://api.softlayer.com/rest/v3/SoftLayer_Account/getUsers.jsoni?objectMask=mask\[virtualGuestCount,hardwareCount,userStatus,username,id,email,createDate;accountId,passwordExpireDate,secondaryPasswordTimeoutDays,secondaryPasswordModifyDate,userStatusId\]&objectFilter=\{\"userStatusId\":\{\"operation\":1021\}\}"> The user profiles returned are only 1001 status id for Active. How do I retrieve

Sample code for ordering an EVault backup in SoftLayer

扶醉桌前 提交于 2019-12-02 06:23:15
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 seriously doubt I need to gather all that and pass. So if someone already knows this or have sample, could

Resource Data In SoftLayer

ぐ巨炮叔叔 提交于 2019-12-02 05:48:57
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.26266666666667 getDateTime() : 03 03 2016 10:00:00-0600 dt.hashCode() : 1396398841 ***************************

Unauthorized error while connecting Object Storage from API from Postman

你离开我真会死。 提交于 2019-12-02 05:48:54
问题 I am trying to get object storage container details using provided API in post man But I am getting Unauthorized error, API information available at http://developer.openstack.org/api-ref/object-storage/index.html?expanded=get-object-content-and-metadata-detail,show-account-details-and-list-containers-detail#accounts Following details I am set in PostMan, Method Get Url: https://{domain}.objectstorage.softlayer.net/auth/v1.0/{userid}?format=json Header: Key: X-Auth-Token Value: {token} Error

Bandwidth summary per server

99封情书 提交于 2019-12-02 04:24:46
I am trying to get the bandwidth data for all the softlayer servers under my account. Thanks to account_servers.rb I am able to get the server id for all the servers. Now I would like to get the Bandwidth used by the servers for a particular time frame. The data that I am interested is http://sldn.softlayer.com/reference/datatypes/SoftLayer_Metric_Tracking_Object_Bandwidth_Summary . I tried to get information using softlayer_client.service_named("Metric_Tracking_Object_Bandwidth_Summary") . Unfortunately I am not able to get the details. I did find a java code, but I am interested in ruby code