ibm-cloud-infrastructure

How to fetch LocationID, Storage Package ID, Storage Size ID and SnapShot Space Size ID for placing order in Endurance Storage

可紊 提交于 2019-12-18 09:45:27
问题 I need to implement placing order for endurance storage in my Application using BPM over ICO (IBM Cloud Orchestrator) dynamically. I needed following parameters for creating rest call for placing order Package to use Storage Type Location Storage Package (IOPS/GB) Storage Size Snapshot Space Size OS Type Package to use:- I already know package value for endurance is 240 . Storage Type:- For endurance storage what will be numeric id for endurance What rest call will help in this..? Location:-

API for Performance and Endurance storage(Block storage)

帅比萌擦擦* 提交于 2019-12-17 07:39:21
问题 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

Getting “error”: “Internal Error” on Postman and getting error Can not deserialize instance of java.util.ArrayList out of START_OBJECT token

自作多情 提交于 2019-12-14 04:05:21
问题 While hitting below Softlayer rest url from Postman getting error: "Internal Error" And when hitting the same rest url from java code using spring restTemplate getting error as Can not deserialize instance of java.util.ArrayList out of START_OBJECT token. https://api.softlayer.com/rest/v3/SoftLayer_Account/<Account-ID>/getInvoices?objectFilter={"invoices":{"createDate":{"operation":"betweenDate","options":[{"name":"startDate","value":["03/25/2017 00:00:00"]},{"name":"endDate","value": ["04/24

How to get “PDF” file from the binary data of SoftLayer's quote?

一个人想着一个人 提交于 2019-12-14 03:35:24
问题 I got the binary data by "getPdf" method of SoftLayer's API. Ref. BillingSoftLayer_Billing_Order_Quote::getPdf | SoftLayer Development Network - http://sldn.softlayer.com/reference/services/SoftLayer_Billing_Order_Quote/getPdf Then I wanna create the PDF file from the binary data. Do you know how to proceed it? 回答1: the method return a binary data encoded in base 64, what you need to do is decode the binary data. see this article about enconde and decode binary data. https://code.tutsplus.com

Object Filters in Softlayer in Java

五迷三道 提交于 2019-12-13 18:19:33
问题 I am trying to make a call using softlayer client in java , i am able to make normal and straight forward calls even able to apply the object mask. But not getting a way to apply object filter in my service or in my api call using softlayer client. I am trying to get the invoices available between two dates by passing dates as part of object filters. 回答1: Sorry objectFilters are not supported yet for the Softlayer JAva Client see https://github.com/softlayer/softlayer-java/issues/30 来源: https

Creating and recognition of a vGPU device

穿精又带淫゛_ 提交于 2019-12-13 11:16:07
问题 I am trying to create a VSI with vGPU. What field in the JSON payload do I pass in on the POST to create a vGPU VSI? What field in the JSON payload do I interrogate on a get that indicates the VSI is a vGPU device? 回答1: To create a new VSI using GPU, you can use this rest api: Method: POST https://[username]:[apiKey]@api.softlayer.com/rest/v3.1/SoftLayer_Product_Order/verifyOrder Body: Json { "parameters":[ { "orderContainers":[ { "complexType":"SoftLayer_Container_Product_Order_Virtual_Guest

what is the API (REST) to find out whether bare metal server provisioned or not?

不羁的心 提交于 2019-12-13 10:58:12
问题 According to SLDn of softlayer Softlayer_hardware/some id/getObjects?mask with domain name and Vm name will give provision status.But when I make RESt call with same I get 200 ok but xml output hass error. Please let me know how can I get VM provision successful or not? Help me with REST API. https://userid:apikey@api.softlayer.com/sldn/rest/SoftLayer_Hardware/****/getObject?mask=[hostName,domain] * is ID which got when we made below rest call https://userid:apikey@api.softlayer.com/rest/v3

Subnet error while ordering baremetal server

有些话、适合烂在心里 提交于 2019-12-13 09:36:41
问题 I use the following json parameters to order a Baremetal server `{ "parameters": [ { "location": "449494", "packageId": 257, "hardware": [ { "hostname": "BMtest1", "domain": "domain.com", "primaryBackendNetworkComponent": { "networkVlanId": "1229225" } } ], "prices": [ { "id": "49515" }, { "id": "50357" }, { "id": "49759" }, { "id": "876" }, { "id": "55" }, { "id": "57" }, { "id": "175791" }, { "id": "273" }, { "id": "21" }, { "id": "49495" }, { "id": "906" }, { "id": "418" }, { "id": "420" }

How can I tell if a VM is on Xen 6 hypervisor

拟墨画扇 提交于 2019-12-13 09:22:25
问题 How can I tell if a virtual guest is on a Xen 6 hypervisor using the REST API https://api.softlayer.com/rest/v3/SoftLayer_Virtual_Guest/.json? Thanks 回答1: nope that information is not available via API, you could submit an item and ask the softlaer's employess for that information. Regards 来源: https://stackoverflow.com/questions/43159952/how-can-i-tell-if-a-vm-is-on-xen-6-hypervisor

SoftLayer Vulnerability Scan Python

跟風遠走 提交于 2019-12-13 08:10:45
问题 I'm trying to use SoftLayer's Python library to run automated vulnerability scans. Unfortunately I get the following exception: SoftLayerAPIError: SoftLayerAPIError(SoftLayer_Exception): Unable to create a new object of type SoftLayer_Network_Security_Scanner_Request_Nessus. Make sure the authentication method is correct. The code I use can be seen below. import SoftLayer USERNAME="" # I put valid value in here APIKEY="" # I put valid value in here TARGET="" # I put valid value in here client