ibm-cloud-infrastructure

How can we order “Storage As A Service (StaaS)”?

 ̄綄美尐妖づ 提交于 2019-11-29 16:54:17
We are able to order Endurance Storage using packageId 240 even now. However there are recent updates for Endurance Storage, it can be encrypted at rest and selected at more granular level, for example, 1, 2, 3... TB rather than 1, 2, 4... TB. Then we seem to have to use another package 759 named "Storage As A Service (StaaS)" Here is our attempt. Could you clarify what's wrong? Our goal is to order 6TB LUN volume at once with new Endurance menu. #import package import SoftLayer import json # account info client = SoftLayer.create_client_from_env() order = { "orderContainers": [ { "complexType

Create a SoftLayer virtual guest on a specific subnet

南楼画角 提交于 2019-11-28 12:57:45
问题 Recently I noticed the SoftLayer UI has changed and part of that change was the ability to specify a subnet on a VLAN when ordering a virtual guest. Has this support been implemented in the REST API json payload when specifying primaryNetworkComponent and primaryBackendNetworkComponent parameters to create a virtual guest? 回答1: Yes, Currently It's possible to set the subnets, you should define "primarySubnet" inside of "networkVlan" property, here a Rest example: https://$user:$apiKey@api

Unable to get itemCategory info from call GetConfiguration when called from golang

拥有回忆 提交于 2019-11-28 12:34:39
问题 The api call GET https://api.softlayer.com/rest/v3/SoftLayer_Product_Package/257/getConfiguration?objectMask=mask[itemCategory] returns an object, []datatypes.Product_Package_Order_Configuration where ItemCategory is populated. sample output: { "id": 7167, "isRequired": 0, "itemCategoryId": 390, "orderStepId": 1, "packageId": 257, "sort": 0, "itemCategory": { "categoryCode": "trusted_platform_module", "id": 390, "name": "Server Security", "quantityLimit": 1, "sortOrder": 0 } }, When I attempt

How to add two or more disk to softlayer virtual server while provisioning

十年热恋 提交于 2019-11-28 12:05:00
问题 Add two or more disk to virtual server while provisioning in softlayer using rest query 回答1: you can set the disk at order time, see the documentation about http://sldn.softlayer.com/reference/services/SoftLayer_Virtual_Guest/createObject basically you have to configure them at the block devices section: { "blockDevices": [ { "device": "0", "diskImage": { "capacity": 100 } } { "device": "2", "diskImage": { "capacity": 25 } } ], "localDiskFlag": true } Then you can add more disk after the

SoftLayer API: Ordering Subnet

断了今生、忘了曾经 提交于 2019-11-28 11:44:02
问题 I'm on looking for the API that retrieve the list of subnet and its prices. For, Portable IP Addresses and the static found category ID as 279 and 281. And found for Global IPv4, Portable Public IPv6 and Global IPv6. We've done it through, Package ID 0 and joined with item names. Is there any better way to get it? Or else what are the category ID for Global IPv4, Portable Public IPv6 and Global IPv6. Thanks. 回答1: To get all category subnets, execute: https://[username]:[ap[ikey]@api.softlayer

How can we order “Storage As A Service (StaaS)”?

天大地大妈咪最大 提交于 2019-11-28 10:24:18
问题 We are able to order Endurance Storage using packageId 240 even now. However there are recent updates for Endurance Storage, it can be encrypted at rest and selected at more granular level, for example, 1, 2, 3... TB rather than 1, 2, 4... TB. Then we seem to have to use another package 759 named "Storage As A Service (StaaS)" Here is our attempt. Could you clarify what's wrong? Our goal is to order 6TB LUN volume at once with new Endurance menu. #import package import SoftLayer import json #

Configuring Softlayer Disk Partitions at Order Time

时光怂恿深爱的人放手 提交于 2019-11-28 02:08:35
I was wondering how it would be possible to specify an extra partition to add to the boot drive (in this case a RAID1 storage group) at order time via the Softlayer Ppython API. That way the extra partition would persist on the server after transactions like OS reloads. I assume it would be added as an extra option, similar to the storage_groups in the example below (I have redacted some information to keep it as general as possible), but I'm unsure of how to add this. RAID_1 = 2 SERVERS = [ { "types": [ { "name": "NAME", "type": "TYPE" }, ], "package": PACKAGE_DESCRIPTION "prices": [ "CPU",

How to use object filter with softlayer rest api?

 ̄綄美尐妖づ 提交于 2019-11-27 05:22:00
I read this article and have some problems trying to follow the examples. The following is one of the examples given in that article. The first parameter in the object filter is virtualGuests . This object filter can be used in api https://api.softlayer.com/rest/v3/SoftLayer_Account/VirtualGuests . object_filter = { 'virtualGuests': { 'datacenter': { 'name': {'operation': 'dal05'} } } } I want to use the object filter in other api methods, like SoftLayer_Account/getBlockDeviceTemplateGroups for example. My question is how to get/set the first parameter like virtualGuests ? I tried several

API for Performance and Endurance storage(Block storage)

半城伤御伤魂 提交于 2019-11-27 05:13:20
We are a part of DST India team and currently we are working for an offering for our client where we are trying to integrate performance and endurance storage features (of SoftLayer) in ICO using REST API provided by SoftLayer. I have gone through SoftLayer documentation but I'm not able to find the same. So, Could you kindly provide us following information? please provide API for creating endurance storage (along with the parameters required) please provide API for creating performance storage (along with the parameters required) please provide API for attaching endurance storage (along with

Configuring Softlayer Disk Partitions at Order Time

孤人 提交于 2019-11-26 22:08:08
问题 I was wondering how it would be possible to specify an extra partition to add to the boot drive (in this case a RAID1 storage group) at order time via the Softlayer Ppython API. That way the extra partition would persist on the server after transactions like OS reloads. I assume it would be added as an extra option, similar to the storage_groups in the example below (I have redacted some information to keep it as general as possible), but I'm unsure of how to add this. RAID_1 = 2 SERVERS = [