IBM Cloud: Which API to use to get list of all block volume sanctioned - api

Currently, I use this IBM Cli command to get list of volumes sanctioned:
ibmcloud sl block volume-list
I wanted to get the same data using IBM Cloud API (or Python SDK).
I tried this IBM Cloud's VPC API
but that only seem to list disk under a VPC

The official IBM Cloud API list does not seem to have any SoftLayer / Infrastructure APIs.
Running the following command with trace enabled
IBMCLOUD_TRACE=true ibmcloud sl block volume-list
shows that this API is called:
GET https://api.softlayer.com/mobile/v3.1/SoftLayer_Account/getIscsiNetworkStorage.json
You might want to test getIscsiNetworkStorage, even if it is a legacy API.

Related

Does Hub support integrations for MinIO, AWS, and GCP? If so, how does it work?

I was taking a look at Hub—the dataset format for AI—and noticed that hub integrates with GCP and AWS. I was wondering if it also supported integrations with MinIO.
I know that Hub allows you to directly stream datasets from cloud storage to ML workflows but I’m not sure which ML workflows it integrates with.
I would like to use MinIO over S3 since my team has a self-hosted MinIO instance (aka it's free).
Hub allows you to load data from anywhere. Hub works locally, on Google Cloud, MinIO, AWS as well as Activeloop storage (no servers needed!). So, it allows you to load data and directly stream datasets from cloud storage to ML workflows.
You can find more information about storage authentication in the Hub docs.
Then, Hub allows you to stream data to PyTorch or TensorFlow with simple dataset integrations as if the data were local since you can connect Hub datasets to ML frameworks.

What are the steps to export a VM using the vmware vcenter 7 rest api

I'm attempting to build some custom automation to handle the import / export of VM's to / from an on-prem vmware cluster.
So far I have authenticated the rest api, can get a VM's info, but I cannot work out how to approach exporting the selected VM.
I believe I'll need to create a download session & iterate through its files, saving them to disk one by one whilst keeping the download session alive, but the documentation seems to skirt around the concept of exporting a VM and focus predominantly on deploying.
Does anyone have an example / list of steps required to achieve exporting a VM via the Rest API?
As of 7.0U2, that functionality doesn't exist in the vSphere Automation (REST) API. Here are the top level VM functions: link
If you're open to using the vSphere Web Services (SOAP) API, there's an exportVM function available: link
If you want to automate VMs import/export I recommend to use OVF Tool / PowerCLI.
I leave you a KB with example https://kb.vmware.com/s/article/1038709

AWS Cognito substitute on Pivotal Cloud Foundry (PCF)

I'm exploring Pivotal Cloud Foundry (PCF)'s PAS for moving our organisation's on-premise application onto private cloud. Going by the documentation, I'm unable to find if PCF has any offering for end user authentication & authorisation like we have Cognito on AWS?
If not, are there any other external service that can be used in conjunction with PCF for the purpose?
Thanks for your help.
I don't know if it'll be an exact replacement, but Pivotal Cloud Foundry has a single sign-on option available.
https://docs.pivotal.io/p-identity/1-6/index.html
It uses the same UAA, which comes with the platform and controls access to the platform, but is completely separate and allows you to provide similar access controls to your applications running on top of Pivotal Cloud Foundry.

How can I connect a mobilefirst application to a bluemix service?

I have developed a hybrid app on mobilefirst, and I wish to use a bluemix service. so I think the best solution is creating a nodejs app in bluemix and adding the needed service.
But I don't know how to connect both apps.
You can find online many examples describing how to use MobileFirst Adapters in order to access Bluemix services.
Review the following.
Once you when a technical question, open another.
MobileFirst Platform Foundation Labs - showing how to implement and integrate various features, including Bluemix services: https://developer.ibm.com/mobilefirstplatform/labs/
Implementation on an MobileFirst app which accesses the Watson question & answer service: https://developer.ibm.com/mobilefirstplatform/2015/04/29/using-http-adapters-to-access-watson-question-and-answer-service-at-ibm-bluemix/
Some bluemix services requires to have the app bound to your application. One way to handle this would be to deploy your MFPF Server in Bluemix using docker bound to your nodejs app, with all the services bound to it.
The idea here is your docker is bound to the nodejs, and the services are bound nodejs app, then this allow the services to be visible to the container.
This would be the case for example for SQL Database services.
Other Services are exposed outside the bounded app, such as Cloudant that has a public api for it.
To explore this observe the syntax of the command "ice group create"that you could to use to create a container group bound to app:
ice group create [-h] [--name NAME] [--memory MEMORY] [--env ENV] [--volume VOL] [--publish PORT] [--min MIN] [--max MAX] [--desired DESIRED] [--bind APP] [--auto] IMAGE [CMD [CMD ...]]
The key option would be "--bind APP". This same action could be done via the bluemix dashboard on the option to "Start Containers".
https://www.ng.bluemix.net/docs/containers/container_cli_reference_ov.html#container_cli_reference_ice__group_create
There is a sample app here that explores Watson Services + MFPF, without using the docker approach:
https://github.com/IBM-MIL/IBM-Ready-App-for-Banking

Openstack create volume via Nova API

I'm trying to build a small webapp that will handle our development environments located on an openstack infrastructure (version 2012.2.2-dev, bundled in ubuntu 12.04) and I need to create some volumes using the API (i decided to use openstack rest api). I'm able to start machines and do some other operations (everything is built based on this: http://api.openstack.org/api-ref.html). If I send the request to create a volume as explained on the api reference, i get a 404. I tried different api versions (v1), but still no success.
Thank you in advance.
What language are you coding in? You could just use an SDK for this and skip trying to talk to the API directly. See
https://wiki.openstack.org/wiki/SDKs
In newer releases of OpenStack it is preferable to make use of the Cinder API rather than Nova API.
In folsom, Cinder uses IDENTICAL API refs to Nova volume related API sets. This is because this was the first release to separate out volume management to cinder as a stand alone project. While volume API references remain in folsom it is not the default and it is not the preferred method for accessing volumes REST queries.
Check out.
http://docs.openstack.org/developer/cinder/