ibm-cloud-infrastructure

API for Listing All Performance Storages for a user

半腔热情 提交于 2019-12-11 12:20:01
问题 I am new to softlayer. We need to have all the performance storages for a user so that by selecting any of these we can get corresponding Virtual Machine Id for authorizing with storage. Please help me as I am struggling in same for last 4-5 days. Thanks in advance. 回答1: Please, try the following Rest request: https://[username]:[apikey]@api.softlayer.com/rest/v3/SoftLayer_Account/getNetworkStorage?objectMask=mask[id,username,nasType,storageType, allowedVirtualGuests,billingItem[orderItem[id

Sample code to handle the upgrade of EVault?

冷暖自知 提交于 2019-12-11 12:05:30
问题 Now that I have ordering EVault working, I need some help with upgrading it. Can anyone provide some sample code (PHP preferred) that will perform an upgrade of EVault backup in SoftLayer? If there are different input for upgrading EVault backup associated with Virtual Guest vs. Bare Metal, please provide the differences as well. For an Endurance storage, I've used "Container_Product_Order_Network_Storage_Enterprise_SnapshotSpace_Upgrade" as complexType in the container, but I don't see

Connecting to softlayer object storage using openstack API library php-opencloud

╄→гoц情女王★ 提交于 2019-12-11 11:09:55
问题 Is there someone tried to connect to softlayer object storage using the php-opencloud library? I got 400 bad response when the library trying to make authentication. From what I see inside the php-opencloud library, It use authentication method described here, it uses v2/token and softlayer object storage using v1. Does softlayer object storage that based on the same openstack doesn't support the authentication v2? I can connect to the object storage using sdk(softlayer-object-storage-php)

Network Speed - How to find the ID from getItemPrices to increase maxspeed in softlayer

这一生的挚爱 提交于 2019-12-11 10:40:18
问题 I am following the below steps to increase the network maxspeed to 1 gbps, Find the package ID using the API: https://$user:$apiKey@api.softlayer.com/rest/v3/SoftLayer_Virtual_Guest/$vsi/getObject?objectMask=mask[billingItem[package]] Next I need to get the Item price ID for 1 gbps speed and using following API: https://$user:$apiKey@api.softlayer.com/rest/v3/SoftLayer_Product_Package/$packageId/getItemPrices This is where am stuck as am not aware which ID needs to selected from this output.

SoftLayer_ObjectMask for SoftLayer_Network_Gateway_Vlan::getObject

被刻印的时光 ゝ 提交于 2019-12-11 08:37:11
问题 I would like to use SoftLayer_Network_Gateway_Vlan::getObject in Python in order to check whether a VLAN is already attached to a gateway before using createObject. I have no problem to use createObject with such a piece of code: obj = {'bypassFlag':False, 'id':None, 'networkGatewayId':module.params['gateway_id'], 'networkVlanId':module.params['vlan_id']} try: res = env['Network_Gateway_Vlan'].createObject(obj) except SoftLayer.exceptions.SoftLayerAPIError as e: module.fail_json(msg=e

Softlayer API: How to do image capture with specify certain data disk?

夙愿已清 提交于 2019-12-11 07:56:18
问题 I have a vm with disk 1,2,3,4, I want to do some image operations: Q1: How can i capture the image only contain system disk and disk 3? Q2: If I achieve the image production described in Q1, can I use this image install or reload a vm? How SL api to do with the disk 3 in the image ? Q3: Can I make a snapshot image only for disk 3? Q4: If I achieve the image described in Q3, how can I use this snapshot to init a disk ? 回答1: at moment to create the image template you can specify the block

Is there a rate limit on Softlayer API

喜欢而已 提交于 2019-12-11 07:34:10
问题 We are running some load test for our product and it includes some REST calls to Softlayer API. Sometimes our rest calls (Softlayer) fails to return any value. We are trying 50+ concurrent requests. Are there any limitations on concurrent requests ? Appreciate any information on this. 回答1: There exist a limit of 50 api calls per second . It is applied per-user. If you exceed the limit, an exception like this should be displayed: "error": "Rate limit of 50 requests for every 1 second(s)

SoftLayer (multiple) client responding with errors after API upgrade

落爺英雄遲暮 提交于 2019-12-11 07:08:32
问题 I am having issues connecting to the SoftLayer Product/Orders APIs. Endpoints: Product_Packages is dropping the connection, Product_Place_Orders is returning invalid auth. Hardware and VirtualGuests are accepting the credentials and returning the information I expect. Either: Invalid credentials Connection reset by peer I am, however, able to use the same credentials to see what machines and vlans are in the account. Looking into this more, curl works, another client I have works still,

How to automate eVault backup, are ther any APIs?

半腔热情 提交于 2019-12-11 06:15:14
问题 I want automate eVault backup without login webCC. Are there APIs can configure agent, create jobs, confiure jobs and set schedule etc for eVault backup? From following links, they mentioned eVault backup can only do in webCC. https://knowledgelayer.softlayer.com/faqs/37#822 Using SoftLayer API to configure Evault Backup (configure agent, jobs, and schedule) But I still want confirm with you whether you support APIs to configure eVault backup now? because the above links are pasted at last

Batch checking the VM status with Softlayer API

我的未来我决定 提交于 2019-12-11 05:31:53
问题 We are using Softlayer APIs to check the status of the VMs we create. Below are the APIs we are using now, and we have to check the status for one VM at a time. Is there a Softlayer API that can retrieve the status of a list of VMs? Here are the APIs we are calling to get the status of one VM each time: 1. Get the VM id api.softlayer.com/rest/v3/SoftLayer_Virtual_Guest/findByIpAddress/ x.x.x.x 2. Get the VM status api.softlayer.com/rest/v3/SoftLayer_Virtual_Guest/ vmID /getPowerState.json 回答1