For details on how to use this API, see Using the OpenStack Object Store API
The Object Store high-level interface is exposed as the object_store object on Connection objects.
Set metatdata for this account.
Parameters: | container (Container) – Account metadata specified on a Container object to be sent to the server. |
---|---|
Return type: | None |
Obtain Container objects for this account.
Parameters: |
|
---|---|
Return type: | A generator of Container objects. |
Get metatdata for a container.
Parameters: | container (Container) – The container to retreive metadata for. You can pass a container object or the name of a container to retrieve metadata for. |
---|---|
Return type: | Container |
Raises: | ValueError when an unnamed container object was specified, as this would instead retrieve account metadata. |
Set metatdata for a container.
Parameters: | container (Container) – A container object containing metadata to be set. |
---|---|
Return type: | None |
Create a container,
Parameters: | container (Container) – The container to create. You can pass a container object or the name of a container to create. |
---|---|
Return type: | Container |
Delete a container.
Parameters: | container (Container) – The container to delete. You can pass a container object or the name of a container to delete. |
---|---|
Return type: | None |
Return a generator that yields the Container’s objects.
Parameters: | container (Container) – A container object or the name of a container that you want to retrieve objects from. |
---|---|
Return type: | A generator of Object objects. |
Retreive the data contained inside an object.
Parameters: | obj (Object) – The object to retreive. |
---|
Save the data contained inside an object to disk.
Parameters: |
|
---|
Create an object within the object store.
Parameters: |
|
---|
Copy an object.
Delete an object.
Parameters: | obj (Object) – The object to delete. |
---|---|
Return type: | None |