ibm-cloud-infrastructure

Softlayer REST API for tagging machines

陌路散爱 提交于 2019-12-12 04:39:59
问题 Can someone please give me a Softlayer REST API for tagging machines that are already provisioned. I need to both for virtual machines and bare metal machines. Thanks, Kishore 回答1: Virtual Machine https://$user:$apiKey@api.softlayer.com/rest/v3/SoftLayer_Tag/setTags Method: Post { "parameters":[ "tag1,tag2", "GUEST", 29756959 ] } replace 29756959 with the ID of your virtual machine Bare metal https://$user:$apiKey@api.softlayer.com/rest/v3/SoftLayer_Tag/setTags Method: Post { "parameters":[

Softlayer_Hardware: How to setup multiple raid10 storageGroups on the same set of disks

那年仲夏 提交于 2019-12-12 04:38:53
问题 I am working on automation of provisioning Softlayer baremetal instances. I have an appropriate json for ordering the hardware, but I can't seem to figure out how to specify the disk layout. The Answer below from Nelson shows the key part to the process: Using the Chrome developer tools to obtain price ids and raid configuration. On the portal I ordered a test system, specifying 4 4000GB Western Digital WD RE drives and cofiguring the storage groups with 1 TB standard linux plus a 7 TB

What's the best way to clean up SoftLayer accounts?

 ̄綄美尐妖づ 提交于 2019-12-12 04:35:54
问题 We've been testing our product as as part of the testing we had to internally create a bunch of SoftLayer accounts under a master brand. What is the best way to close out or delete or remove these accounts? I was looking at the SoftLayer APIs like Account and Brand and I don't see any Delete/Remove type of APIs. What SoftLayer APIs can I use so go through each account, cancel all devices and delete the account? Or at least disable the account? What is the best way to do this? 回答1: This was

API :create a VSI with a public subnet fail with error “ The subnet specified #1217371 (169.44.xxx.0/27) does not currently have available slots”

百般思念 提交于 2019-12-12 04:32:01
问题 Try to create a VSI with a public subnet fail with error " The subnet specified #1217371 (169.44.xxx.0/27) does not currently have available slots", but the subnet id should have enought ips here is question 1 what's concept for slot ? 2 how to check slot infor for public subnet by API 3 how to apply slot here is log >>> templateObject = {'domain': 'rccmlk.com', 'localDiskFlag': True, 'maxMemory': 1024, 'networkComponents': [{'maxSpeed': 1000}],'primaryBackendNetworkComponent': {'networkVlan'

How to create Object in Object Storage Using JAVA?

这一生的挚爱 提交于 2019-12-12 04:29:52
问题 I know how to create object by get authenticate and than call API Here below link is information available how to get authenticate, Unauthorized error while connecting Object Storage from API from Postman Is there any library available in JAVA to perform these operation? I got library from below link but it seems old one and not working, https://github.com/softlayer/softlayer-object-storage-java/tree/master/sl-objectstorage If anyone know Can you please post how to operate it? By using

Finding VSi's or Bare metals in certain pods

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-12 04:28:56
问题 Is there a way to search pods in a datacenter then grab the servers that are in those pods? I read somewhere that it's somewhat possible but the last question was regarding REST. Currently utitlizing the Python API 回答1: Try this python script: """ List servers according pods from a specific datacenter Important manual pages http://sldn.softlayer.com/reference/services/SoftLayer_Account/getHardware http://sldn.softlayer.com/reference/services/SoftLayer_Account/getVirtualGuests http://sldn

Softlayer Evault Price Ids

元气小坏坏 提交于 2019-12-12 04:27:34
问题 I am trying to create an evault backup programmatically using soflayer API. I have everything I need except for how to obtain the price id for the evault backup size we need. How can I do that dynamically, or if its not available, just the list of price ids for evault storage sizes? Ive already looked in documentation and also contacted support which they suggested SO with Softlayer tag. 回答1: A quick view, perhaps using an object filter through the server's datacenter could work: https://

How to enable CORS in softlayer object storage

那年仲夏 提交于 2019-12-12 04:23:06
问题 I am using the Softlayer object storage and accessing my objects in the S3 bucket using SDK API from my Node.js application deployed on IBM Bluemix. I am able to insert the objects in the bucket but while accessing the object using SDK API I am getting the CORS error as below: XMLHttpRequest cannot load https://s3-api.us-geo.objectstorage.softlayer.net/<my bucket-name>/<my object-name>. No. 'Access Control-......Allow-Origin' header is present on the requested source. Origin 'http://localhost

How to reload different version of XenServer in my BMC in SoftLayer?

試著忘記壹切 提交于 2019-12-12 04:21:49
问题 In SoftLayer, I have a BMC with XenServer 6.2 version. I want to load XenServer 6.5.1 version. Hence, I issued reloadOperatingSystem REST API call as given below. My expectation was once it is successful, my BMC will have XenServer version 6.5.1. But it was successful per API response and BMC was not reloaded OS. So my question is, if the JSON body is wrong, can you please give me sample JSON needed to reload different version of XenServer? or What did I do wrong in this request? or It is not

Object Filter for Inovice create date

我的梦境 提交于 2019-12-12 04:17:47
问题 I am using rest API to get invoices whose create date is greater than some date (eg: After 1st September 2015). GET https://{{sluser}}:{{slkey}}@api.softlayer.com/rest/v3.1/SoftLayer_Account/getInvoices?objectFilter={"createDate":{"operation":"greaterThanDate","options":[{"name":"date", "value":"10/01/2015"}]}}&resultLimit=1,5 but this seems to be giving first 5 invoices. May I now what is wrong in the objectFilter? Also how can I specify the date format dd-MM-YYYY or mm-dd-yyyy or yyyy-mm-dd