Skip to content

Object storage service API reference

See https://docs.openstack.org/api-ref/object-store/.

In these methods, {account} is the account or project identifier, {container} is the name of the container, and {object} is the name of the object. These methods allow you to manage containers and objects in the OpenStack Object Storage service, including creating, listing, uploading, downloading, and deleting containers and objects, as well as managing their metadata.

List Containers

Bash
GET /v1/{account}

Create a Container

Bash
 PUT /v1/{account}/{container}
 ```

### Delete a container
```bash
DELETE /v1/{account}/{container}

List objects in a container

Bash
GET /v1/{account}/{container}

Upload an object

Bash
PUT /v1/{account}/{container}/{object}
  • The object data is included in the request body.

Download an object

Bash
GET /v1/{account}/{container}/{object}

Delete an object

Bash
DELETE /v1/{account}/{container}/{object}

Copy an object

Bash
COPY /v1/{account}/{container}/{object}
  • The destination container and object name are specified in the Destination header of the request.

Get container metadata

Bash
HEAD /v1/{account}/{container}

Set container metadata

Bash
POST /v1/{account}/{container}
  • Metadata headers are included in the request.

Get object metadata

Bash
HEAD /v1/{account}/{container}/{object}

Set object metadata

Bash
POST /v1/{account}/{container}/{object}
  • Metadata headers are included in the request.