ibm-cloud

how to order SoftLayer_Virtual_ReservedCapacityGroup

不想你离开。 提交于 2019-12-02 17:48:50
问题 recently, IBM Bluemix releases Reserved Virtual Server(SoftLayer_Virtual_ReservedCapacityGroup). We checked a relative API. SoftLayer_Virtual_ReservedCapacityGroup SoftLayer_Virtual_ReservedCapacityGroup_Instance SoftLayer_Account::getActiveReservedCapacityAgreements SoftLayer_Virtual_Guest_Status(1009) And we can't find how to create reserved capacity group. we are using API(placeorder) for order. Looking this api, there are containers about each product. but there is no container about

Making an API call in Python with an API that requires a bearer token

浪尽此生 提交于 2019-12-02 16:58:32
Looking for some help with integrating a JSON API call into a Python program. I am looking to integrate the following API into a Python .py program to allow it to be called and the response to be printed. The API guidance states that a bearer token must be generated to allow calls to the API, which I have done successfully. However I am unsure of the syntax to include this token as bearer token authentication in Python API request. I can successfully complete the above request using cURL with a token included. I have tried "urllib" and "requests" routes but to no avail. Full API details: IBM X

how to connect a bluemix app to on-premise db/as400?

坚强是说给别人听的谎言 提交于 2019-12-02 16:29:04
问题 trying to connect a bluemix app (java liberty profile) to our on-premise db/as400 using a secure gateway. Denying or allowing all connection, doesn't change the error message. It seems that the request from the app doesn't reach the secure gateway client (and I don't see messages on sgw client that mentions the connection refused). How can i resolve that? This the code: DB_SERVERNAME=jdbc:as400://xxx-xx-xxx-x.integration.ibmcloud.com:15XXX/dbname try { Driver driver = new com.ibm.as400.access

hive spark yarn-cluster job fails with: “ClassNotFoundException: org.datanucleus.api.jdo.JDOPersistenceManagerFactory”

若如初见. 提交于 2019-12-02 13:32:00
问题 I'm attempting to run a pyspark script on BigInsights on Cloud 4.2 Enterprise that accesses a Hive table. First I create the hive table: [biadmin@bi4c-xxxxx-mastermanager ~]$ hive hive> CREATE TABLE pokes (foo INT, bar STRING); OK Time taken: 2.147 seconds hive> LOAD DATA LOCAL INPATH '/usr/iop/4.2.0.0/hive/doc/examples/files/kv1.txt' OVERWRITE INTO TABLE pokes; Loading data to table default.pokes Table default.pokes stats: [numFiles=1, numRows=0, totalSize=5812, rawDataSize=0] OK Time taken:

IBM Cloud: How to access the API for billing and usage?

半腔热情 提交于 2019-12-02 13:10:52
How can I retrieve usage and cost data for my IBM Cloud account using a REST API? I found that there are billing related commands and I can export some data as JSON . Is there an API or SDK I can use, ideally Python? Here are some of the IBM Cloud billing commands I use: ibmcloud billing resource-instances-usage --json ibmcloud billing account-usage --json Are there equivalent APIs for that? I couldn't find a documented API but used the tracing to see how the above commands are executed. Using a valid access_token a program can call the metering host and obtain usage data for an account,

iOS Application crashes when trying to register the device to IBM Mobile First Push service on Bluemix

雨燕双飞 提交于 2019-12-02 12:23:50
I have an iOS 9 application running on an iPad mini 4 (iOS 9.0.2). It crashes when trying to register the device to my IMFPush service instance on Bluemix. Here is the code that performs the registration in my App delegate: func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool { // Push notifications let notificationTypes: UIUserNotificationType = [UIUserNotificationType.Badge, UIUserNotificationType.Alert, UIUserNotificationType.Sound] let notificationSettings: UIUserNotificationSettings = UIUserNotificationSettings(forTypes:

Bluemix remote debugging session not starting

狂风中的少年 提交于 2019-12-02 12:14:32
问题 I have followed the Bluemix/Eclipse instructions to setup the Liberty servers in eclipse. Able to do everything with the Bluemix/eclipse tools except for remote debugging. Receiving the following exceptions/errors when I select the "Enable Debug Mode" on my application under the servers. Tried a longer Debug timeout but that has not helped. Any pointers? TIA [2015-11-30 07:16:56.832] bluemixMgmgClient - ???? [pool-1-thread-1] .... ERROR --- ClientProxyImpl: Cannot create the websocket

how to order SoftLayer_Virtual_ReservedCapacityGroup

邮差的信 提交于 2019-12-02 11:53:30
recently, IBM Bluemix releases Reserved Virtual Server(SoftLayer_Virtual_ReservedCapacityGroup). We checked a relative API. SoftLayer_Virtual_ReservedCapacityGroup SoftLayer_Virtual_ReservedCapacityGroup_Instance SoftLayer_Account::getActiveReservedCapacityAgreements SoftLayer_Virtual_Guest_Status(1009) And we can't find how to create reserved capacity group. we are using API( placeorder ) for order. Looking this api, there are containers about each product. but there is no container about reserved capacity group. To order a SoftLayer_Virtual_ReservedCapacityGroup you can use the following

Read logged in User details from SSO server in Blue mix

依然范特西╮ 提交于 2019-12-02 09:38:26
I am working on Node.js application with Cloudant database. I was able to do IBM IDP authentication with SSO server on Blue mix via the SSO service. My issue occurs after successful authentication, I am unable to get JSON object that can give me all the user attributes that I need, for example, is the logged in person a manager? if yes then his serial number, name etc Does anyone know how to retrieve the information from IBM SSO service? Kindly let me know as soon as possible. You can check the request.user object returned after successful authentication. It returns some information about the

install.packages(“tm”) -> “dependency 'slam' is not available”

岁酱吖の 提交于 2019-12-02 08:48:10
I'm trying to install the tm package on IBM's Data Science Experience (DSX): install.packages("tm") However, I'm hitting this issue: "dependency 'slam' is not available" This post suggests that R version 3.3.1 will resolve the issue, however the R version on DSX is: R version 3.3.0 (2016-05-03) How can I resolve this issue on IBM DSX? Note that you don't have root access on DSX. I've seen similar questions on stackoverflow, but none are asking how to fix the issue on IBM DSX, e.g. dependency ‘slam’ is not available when installing TM package Update: install.packages("slam") Returns: Installing