copyright | lastupdated | ||
---|---|---|---|
|
2017-02-23 |
{:new_window: target="_blank"} {:shortdesc: .shortdesc} {:codeblock: .codeblock} {:screen: .screen} {:pre: .pre}
You can use the Swift REST API with a command-line client interface, such as cURL, or call the API from your application. {: shortdesc}
For a comprehensive list of the {{site.data.keyword.objectstorageshort}} REST API options and examples, see the OpenStack Swift API complete reference.
Before you can compose your URL, you must authenticate your service instance with Keystone. Be sure to note your catalog response. It will look similar to the following example.
{
"id" : "4207049680fa4effbecd044c7448a8cb",
"region" : "dallas",
"region_id" : "dallas",
"url" : "https://dal.objectstorage.open.softlayer.com/v1/AUTH_4abf7d7bac2c4eda89c03dd3afa7a0a3",
"interface" : "public"
},
{: codeblock}
Add the namespace of your container and object to the end of your {{site.data.keyword.objectstorageshort}} URL as shown in the following image.
Figure 1. {{site.data.keyword.objectstorageshort}} URL example