August 10, 2018

Tags article sldn

Creating an Object Storage instance
An example of how to order an Object Storage instance and interact via the API.

Create an Object Storage Instance

This tutorial walks you through creating a IBM Cloud Object Storage instance.


  • Create an object storage instance.

Services used

This tutorial uses the following technologies: * ibmcloud IBM Cloud CLI

This tutorial may incur costs. Use the Pricing Calculator to generate a cost estimate based on your projected usage.

Install IBM Cloud CLI

To install the toolset, you can run the relevant command to start the installer. This installs the following recommended tools for {{}} development (if not already installed): Homebrew (Mac only), Git, Docker, Helm, kubectl, curl, {{}} CLI, {{}} plug-in, Cloud Functions plug-in, Container Registry plug-in, Container Service plug-in, and sdk-gen plug-in.

Mac and Linux:

curl -sL | bash

Windows 10: Note: Open Windows PowerShell by right-clicking the PowerShell icon and selecting “Run as Administrator”.

Set-ExecutionPolicy Unrestricted; iex(New-Object Net.WebClient).DownloadString('')

Verify Installation

To verify installation, run the help command:

ibmcloud dev help

If installation was successful, the output should list usage instructions, the current version, and supported commands.


ibmcloud login

Create Cloud Object Storage instance


> ibmcloud resource service-instance-create <instance-name> cloud-object-storage <plan> global

Check for the newly provisioned service

You should now see the new object storage instance.

ibmcloud resource service-instances

Create a bucket

Now that you have a service instance up and running, you can create a new bucket to store all future files to be uploaded to.

curl -X PUT "<bucketname>" -H "Authorization: Bearer <token>" -H "ibm-service-instance-id: <instance-id>"

List buckets

You should now see the newly added bucket listed using the command below.

curl "" -H "Authorization: Bearer <token>" -H "ibm-service-instance-id: <instance-id>"

Further documentation for more expanded use of object storage commands



We would love to hear it
Open an issue