ibm-cloud-infrastructure

Softlayer- A template guest record is required to use this method

懵懂的女人 提交于 2019-12-11 05:02:09
问题 I am using postman REST client to execute softlayer REST API's .current trying to create snapshot of vm I am getting error, "A template guest record is required to use this method" when executing below rest call: https://[username]:[api-key]@api.softlayer.com/rest/v3/SoftLayer_Virtual_Guest/[virtual_guest_id]/ in form data using below file createArchiveTransaction.json : { "parameters":[ "my-new-standard-image-name ", [ { "id": 6862924, "complexType": "SoftLayer_Virtual_Guest_Block_Device" }

REST API request that will give the same result as block storage order in control panel

南楼画角 提交于 2019-12-11 04:45:21
问题 I am having trouble understanding how to form a REST API request to order block storage identical to what I order through the web-based control interface. I have ordered a "Performance" storage type disk, in the ams01 location, with monthly billing, that is 100GB with 300 IOPS. I fail to understand which service I should use - and if it is the place_order service - how I should properly make this REST API request. A practical example using the values above would be very helpful. 回答1: You can

How to cancel SoftLayer order for Block Storage?

耗尽温柔 提交于 2019-12-10 18:21:40
问题 I was finally able to use SoftLayer services API to order an Endurance block storage. Now, the question is how can I cancel it using the API? Which data that I need from the order that I need to use to cancel? And what API do I use to cancel? I have the SoftLayer_Billing_Order and SoftLayer_Billing_Item information. For a Virtual server, from above info, a guestId or hardwareId is used to identify the server and use it to delete. I don't get such data for the storage. They are empty. So how

softlayer API : Get OS version list?

守給你的承諾、 提交于 2019-12-08 10:56:31
问题 Now I'm developing a project about softlayer api. I wan't to get the os list by softlayer api. Just like the portal site. Is there certain method to get correct os list ? regards~ 回答1: Unfortunately, it's not possible to retrieve the same result than Control Portal making a single call, but it's possible using a programming language. To see programming languages supported by SoftLayer: SoftLayer Development Network Take a look the following python script: """ List OSs for VSI similar than

softlayer api user password update

巧了我就是萌 提交于 2019-12-06 04:35:47
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 = requests.post('https://<priv api account>:<api key>@api.softlayer.com/rest/v3/SoftLayer_User_Customer/

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

爱⌒轻易说出口 提交于 2019-12-04 06:55:05
问题 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

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

偶尔善良 提交于 2019-12-04 06:35:25
问题 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"

Password Update in SL

喜夏-厌秋 提交于 2019-12-04 06:32:50
问题 I am trying to update a password/Username of OS using Java API in Softlayer. But after executing API, Password is not modified. Here is the code i've tested. Please comment me if you find any doubts. Thanks import com.softlayer.api.ApiClient; import com.softlayer.api.RestApiClient; import com.softlayer.api.service.Hardware; import com.softlayer.api.service.hardware.Server; import com.softlayer.api.service.software.Component; import com.softlayer.api.service.software.Description; import com

Failed to add permission to a SoftLayer user ID

旧街凉风 提交于 2019-12-04 06:19:30
问题 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

Softlayer API to get virtual guest owner

孤街浪徒 提交于 2019-12-02 19:37:56
问题 Is there any API to get owner(user who has provisioned a virtual guest) of a virtual guest? I can only see users having access to a virtual guest API. Thanks 回答1: Please try the following request using filters: https://[username]:[apikey]@api.softlayer.com/rest/v3/SoftLayer_Account/getVirtualGuests?objectFilter={ "virtualGuests": { "billingItem": { "orderItem": { "order": { "userRecord": { "username": { "operation": "myUserName" } } } } } } }&objectMask=mask[id,fullyQualifiedDomainName