Having issue determining credentials used when connecting to SoftLayer ObjectStorage using SFTP - ibm-cloud

I'm having trouble connecting to the Bluemix Object Store using the instructions presented by this link: https://knowledgelayer.softlayer.com/procedure/connect-object-storage-using-sftp
It's unclear to me what the username and account ID are so I would appreciate it if someone can clarify
The instructions are valid
Where I can find the values for SLOS/IBMOS etc?
I do not have access to the Softlayer customer portal as this service as created in Bluemix.
I can confirm that an sftp server is listening at the appropriate region endpoint.

Brien, it is not possible to use SFTP to access the Bluemix Object Storage if you create it from the Services catalog area of the Bluemix UI:
https://console.ng.bluemix.net/catalog/services/object-storage
This one can be accessed via swift cli or REST API.
To use SFTP to access your Object Storage you need to create it from the Infrastructure are of the Bluemix UI - that is the legacy Softayer that is now integrated with Bluemix.
https://console.ng.bluemix.net/catalog/infrastructure/object_storage/
Also, to create the Object Storage from the Infrastructure catalog you need to first link your Bluemix and Softlayer accounts:
https://console.ng.bluemix.net/docs/admin/softlayerlink.html

Related

IBM Cloud API Connect Secure Gateway

Recently, I started seeing an issue when trying to setup secure gateway within API Connect on IBM Cloud, I previously had it working but looks like they changed this wizard interface and its broken since then
here is what I did to recreate the issue:
Setup new APIC instance on IBM Cloud
API connect Manager UI > Admin > Secure Gateways > Add (name & save)
once created, in Secure Gateway Clients section, click on +Set Up
I see no ID or Token generated
no matter what type of client I choose (DataPower, Docker or Installer)
Anyone facing the same issue?
Empty ID and Token when trying to setup Secure Gateway Client
turned out that creating SecureGateway from within the APIC is deprecated feature anyway.
you will need to create standalone SecureGateway resource on Bluemix and call it from your API assembly.
here is the instructions
https://www.ibm.com/support/knowledgecenter/en/SSFS6T/com.ibm.apic.apionprem.doc/task_api_secure_gateway.html

How can I see IBM Bluemix object storage credentials?

For one process I need this credentials that be in Object Storage in IBM Bluemix, so, How can I get this credentials? Where can I see that?
Thank you very much!
credentials_1 = {
'auth_url':'',
'project':'',
'project_id':'',
'region':'',
'user_id':'',
'domain_id':'',
'domain_name':'',
'username':'',
'password':"",
'container':'',
'filename':''
}
There are a few different Object Storage services on the IBM Cloud. Here is a comparison.
Below is a project with Object Storage. The credentials can be found in the Credentials section and/or Service Credentials of the service instance.
You can create a project with the Object Storage service using the App Service console: https://console.bluemix.net/developer/appservice/create-project?services=Object-Storage
You could also use the cf CLI and run the command cf service-key serviceInstanceName serviceKeyName to get the credentials. You would have to run cf service-keys serviceInstanceName to get a list of the service keys beforehand.

Connecting to Object Storage on Node-Red

I am trying to retrieve an image from my Object Storage service using Node-Red.
I imported the Object Storage nodes in my Node-Red instance running on IBM Bluemix and I am trying to use the "get" node but I cannot figure out how to correctly connect it to the Object Storage service.
I set the option to get the configuration details from the Bluemix Service, but when deploying I would always get an error saying "Object Storage Put (err): No object storage configuration found!".
If instead I use the option for API based configuration information, I need to fill out fields which I cannot find on my VCAP_SERVICES or the Object Storage service credentials. The fields that need to be filled in are shown
but my service credentials only include:
"apikey"
"endpoints"
"iam_apikey_description"
"iam_apikey_name"
"iam_role_crn"
"iam_serviceid_crn"
"resource_instance_id"
Can anyone point me in the right direction?
The node-red object storage contribution available in this link:
https://flows.nodered.org/node/node-red-contrib-objectstore
was designed to be integrated with the Swift Object Storage in Bluemix (IBM Cloud Platform).
If you go the Catalog link below:
https://console.bluemix.net/catalog/infrastructure/object-storage-group
there are 4 options, the one you previously selected and is trying to connect is probably the first on the left side and will not integrate with node-red-contrib-objectstorage. T
To integrate with node-red you need to create an instance of the Object Storage service on the far right: Object Storage OpenStack Swift for Bluemix

How to connect dashDB (on Bluemix) with Object Storage (on Bluemix)?

I am using Public Bluemix. I have provisioned a dashDB service instance using my IBM ID in Bluemix. I have also provisioned a Object Storage service. I would like to load files from Object Storage into dashDB.
When I try to define a load job in dashDB to get a file from Object Storage, I face a problem.
dashDB allows me to choose either Amazon S3 or Swift Object Store as the data source. I chose "Swift" and then provided the following Bluemix Object Store service credentials.
Public authentication endpoint : https://identity.open.softlayer.com
User name: as found in my my Bluemix Object Store credentials 'username'
API access key: as found in my my Bluemix Object Store credentials 'password'
Then, I clicked "Browse swift files", expecting to see the files which exist in my Bluemix Object Store's container. But, it shows me just a blank folder and no files.
I need to understand the method to connect Bluemix dashDB to Bluemix Object Store. Please help.
I'm having trouble getting this to work too.
At first, I found an answer on dWAnswers that said this may not be supported.
https://developer.ibm.com/answers/questions/166630/dataworks-integration-between-object-storage-and-d.html
Edit:
The Bluemix support team got back to me with the following message:
For loading from Swift, Bluemix Object Storage is not supported
and only object storage on SoftLayer is supported at this time.
Thanks.

How to use Swift REST API with Bluemix Object Store?

I want to write a Java program running externally to Bluemix that interacts with the instance of the Bluemix Object Store I have provisioned.
The program will use the Swift REST APIs to interact with the service.
The documentation for how to use the REST API is mainly missing in the service documentation and the OpenStack documentation is not helpful with specifics on how to reach the Bluemix service.
Can someone tell me what headers to set and what URL to use to authenticate with the service, and then what headers to set and what URL to use to further interact with the service ? Where do I find this information for my instance of the service ? It doesn't seem to all be available in the service credentials that are displayed.
Also, do I need to do basic authentication every time a REST call is made, or is there a way to get a token ? Where is that explained ?
The Bluemix Object Storage uses the OpenStack Identity (Keystone) v3 API for authentication. For complete documentation on the REST API, see: http://developer.openstack.org/api-ref-identity-v3.html
Since your application will be developed in Java, I'd suggest you use the openstack4j SDK. For example of using openstack4j with Bluemix object storage service, see: https://developer.ibm.com/recipes/tutorials/connecting-to-ibm-object-storage-for-bluemix-with-java/