ibm-cloud-storage

How to create duplicate block storage from snapshot using Softlayer rest api

一曲冷凌霜 提交于 2021-02-17 05:54:51
问题 I have created snapshot but unable to create block storage from snapshot. We cant find any Api document. Anyone help me on this request 回答1: Try using the following slcli command to order a duplicate volume: slcli block volume-duplicate --origin-snapshot-id 11111 --billing monthly 22222 Replace 11111 for your snapshot id and 22222 for your volume id. To get the list of the snapshot ids for your volume you can use the following command: slcli block snapshot-list 1234 Replace 1234 for your

How to get a direct URL to a file on IBM Cloud Object Storage

青春壹個敷衍的年華 提交于 2020-06-26 14:30:11
问题 So, I have a bucket on IBM's Cloud Object Storage. In this bucket I have an file named 'test.png'. What I need is an URL i can use to access this file directly. An URL that I can just write on browser and the image will open on my browser. I've searched everywhere and could not find anything except for a "ObjectSQL URL" in this format: cos://{Region}/{Bucket}/{File} 回答1: Presuming that the bucket has public access enabled, the URL is just https://{endpoint}/{bucket}/{object} (or https://

how external app can access ibm cloud object storage

柔情痞子 提交于 2019-12-11 14:43:47
问题 I have IBM COS service and able to use Curl command via cli to retrieve objects. I used IAM tokens to retrieve. But how do I let an external web app ex., node access this service? what value should be there in authorization for external app access? 回答1: External apps will come in the form of something like the AWS CLI or any other app that uses either an HTTP library coupled with IBM Cloud Object Storage API or even an SDK for languages like Python, Java or Node.Js All of the above will ask

No FileSystem for scheme: cos

左心房为你撑大大i 提交于 2019-12-11 03:35:15
问题 I'm trying to connect to IBM Cloud Object Storage from IBM Data Science Experience: access_key = 'XXX' secret_key = 'XXX' bucket = 'mybucket' host = 'lon.ibmselect.objstor.com' service = 'mycos' sqlCxt = SQLContext(sc) hconf = sc._jsc.hadoopConfiguration() hconf.set('fs.cos.myCos.access.key', access_key) hconf.set('fs.cos.myCos.endpoint', 'http://' + host) hconf.set('fs.cose.myCos.secret.key', secret_key) hconf.set('fs.cos.service.v2.signer.type', 'false') obj = 'mydata.tsv.gz' rdd = sc