A container is a storage compartment that provides a way to organize the data stored in Oracle Storage Cloud Service.
Any user with the Service Administrator role can create containers. You should create at least one container for your account. Containers are similar to a directory structure but with a key distinction: unlike directories, containers cannot be nested.
For information about creating containers by using the Java library, see
createContainer in Java API Reference for Oracle Cloud Storage Service.
For information about creating containers by using the REST API, see Create Container in OpenStack Object Storage Service API Reference.
cURL Command Syntax
curl -v -X PUT \ -H "X-Auth-Token: token" \ accountURL/containerName
tokenis the authentication token obtained earlier from Oracle Storage Cloud Service. See Authenticating Access When Using the REST API.
accountURL, see About REST URLs for Oracle Storage Cloud Service Resources
containerNameis the name of the container to be created.
cURL Command Example
curl -v -X PUT \ -H "X-Auth-Token: AUTH_tkb4fdf39c92e9f62cca9b7c196f8b6e6b" \ https://storage.us2.oraclecloud.com/v1/Storage-ORACLEGENZ138479113098/myFirstContainer