Use cURL

cURL is an open source, command-line tool for transferring data with URL syntax, supporting various protocols including HTTP and HTTPS. The examples in this document use cURL to demonstrate how to access the Oracle Cloud Infrastructure Object Storage Classic REST API.

For information about downloading and installing cURL, see Quick Start.

For more information about authentication requirements, see Authentication.

If you're obtaining your account's REST endpoint URL from the REST Endpoint field in My Services, then this is an example cURL command to create a container named FirstContainer:

curl -v -X PUT \
     -H "X-Auth-Token: AUTH_tkb4fdf39c92e9f62cca9b7c196f8b6e6b" \
     https://acme.storage.oraclecloud.com/v1/Storage-acme/FirstContainer

If you're obtaining your account's REST endpoint URL from the REST Endpoint (Permanent) field in My Services, then this is an example cURL command to create a container named FirstContainer:

curl -v -X PUT \
     -H "X-Auth-Token: AUTH_tkb4fdf39c92e9f62cca9b7c196f8b6e6b" \
     https://storage-7b16fede61e1417ab83eb52e06f0e365.storage.oraclecloud.com/v1/Storage-7b16fede61e1417ab83eb52e06f0e365/FirstContainer

Note:

For information about the URLs to which you should send HTTP requests, see Send Requests.