ibm-cloud-infrastructure

How do I create a SoftLayer Vlan using Terraform?

戏子无情 提交于 2020-01-25 21:03:04
问题 I am able to create VLANs using control.softlayer.com (we have the automated VLAN ordering flag turned on). However, when I attempt to use the Terraform provider from github slash ibm-bluemix.github.io/tf-ibm-docs/v0.3-tf-v0.9.3/r/infra_vlan.html, I get an error. I am using the API key from my account, so permissions should be the same. Here's the .tf file content: resource "ibmcloud_infra_vlan" "dev_vlan_01" { name = "pancakes_dev_vlan_01" datacenter = "FRA02" type = "PRIVATE" subnet_size =

SoftLayer OS Reload API

被刻印的时光 ゝ 提交于 2020-01-25 20:40:09
问题 I have the same issue as SL ReloadOS API inquiry and I am using maven dependency. <dependency> <groupId>com.softlayer.api</groupId> <artifactId>softlayer-api-client</artifactId> <version>0.2.2</version> </dependency> Server.Service serverService = Server.service(client, hardware.getId()); fails to compile with error Type mismatch: cannot convert from Hardware.Service to Server.Service serverService.reloadOperatingSystem("FORCE", config); Since I am using maven, how to change the code of com

softlayer local Load Balancer manage API

天涯浪子 提交于 2020-01-17 15:29:35
问题 after customer order local load balancer in softlayer control, customer act a few action for management (Add Group, Add Service, Cancel Load balancer) and then save configuration in control. i can get detail infomation of load balancer using VirtualIpAddress getObject(id) method but i don't know how to update(save) my changed configuraitons using API? i was attached screen shot of softlayer control's which api is available for management of Load balancer? Local Load Balancer Detail of control

softlayer local Load Balancer manage API

 ̄綄美尐妖づ 提交于 2020-01-17 15:29:06
问题 after customer order local load balancer in softlayer control, customer act a few action for management (Add Group, Add Service, Cancel Load balancer) and then save configuration in control. i can get detail infomation of load balancer using VirtualIpAddress getObject(id) method but i don't know how to update(save) my changed configuraitons using API? i was attached screen shot of softlayer control's which api is available for management of Load balancer? Local Load Balancer Detail of control

softlayer api: How to order Public Secondary IP Addresses when I ordering?

我的未来我决定 提交于 2020-01-17 07:10:13
问题 I want to order Public Secondary IP Addresses when I ordering. And How to submit these order infomation by softlayer api ? 回答1: To submit the order information described above, you need to fill the parameter "itemCategoryQuestionAnswers" during the order, that parameter can be found in datatypes like Container_Product_Order_Virtual_Guest and Container_Product_Order_Hardware_Server Below is an example in JSON for REST: "itemCategoryQuestionAnswers":[ { "answer": "2", "categoryId": 14,

how is '@' handled in the softlayer Rest calls

大城市里の小女人 提交于 2020-01-17 06:34:10
问题 I have an '@' in my user id "12345_name@company.com" , this when passed in the Rest Call is causing the error "Softlayer Access Denied" . { "error": "Access Denied. ", "code": "SoftLayer_Exception_Public" } Please suggest ways to get around this. Can we use an Alias instead of the "12345_name@company.com" user if. Below is the Rest call I am trying to make. https://12345_name@company.com:@api.softlayer.com/rest/v3/SoftLayer_Account/getVirtualGuests.json?objectMask=mask[hostname;domain;id

how is '@' handled in the softlayer Rest calls

孤街醉人 提交于 2020-01-17 06:34:08
问题 I have an '@' in my user id "12345_name@company.com" , this when passed in the Rest Call is causing the error "Softlayer Access Denied" . { "error": "Access Denied. ", "code": "SoftLayer_Exception_Public" } Please suggest ways to get around this. Can we use an Alias instead of the "12345_name@company.com" user if. Below is the Rest call I am trying to make. https://12345_name@company.com:@api.softlayer.com/rest/v3/SoftLayer_Account/getVirtualGuests.json?objectMask=mask[hostname;domain;id

How to create a priceConflicts hash like on store package configure

六眼飞鱼酱① 提交于 2020-01-17 04:59:31
问题 Context: On softlayer configure page for a virtual guest ( https://www.softlayer.com/Store/orderComputingInstance/1640,1644,2202 ), the JavaScript do a lot of show / hide on price items based on some restrictions like: MySQL for Linux is hidden when you choose Windows as Operating System (price to price restriction) Private Node are unavailable on Dallas (location to price restriction) My Problem: Building a web interface to configure a virtual guest, I need to build a hash exactly like

Creating a vGPU device with second disk

梦想与她 提交于 2020-01-16 19:42:12
问题 Thanks for the previous asked question(Creating and recognition of a vGPU device), I know that, to create a new VSI using GPU, I can use this rest api: https://[username]:[apiKey]@api.softlayer.com/rest/v3.1/SoftLayer_Virtual_Guest/createObject With payload json string. My question is, what if I need a second disk when creating a vgpu device, how to add that information into the above payload json string? 回答1: To add second disks, you need to add the attribute ¨blockDevices¨ into the payload

How to find location of an EVault using SoftLayer API?

荒凉一梦 提交于 2020-01-11 13:23:14
问题 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,