Bases: object
API for communicating with Swift.
Underlying Swift connection object.
Uploads a given file to Swift.
container – The name of the container for the object.
obj – The name of the object in Swift
filename – The file to upload, as the object data
object_headers – the headers for the object to pass to Swift
The Swift UUID of the object
SwiftOperationError, if any operation with Swift fails.
Uploads a given string to Swift.
object – The name of the object in Swift
data – string data to put in the object
container – The name of the container for the object. Defaults to the value set in the configuration options.
The Swift UUID of the object
utils.Error, if any operation with Swift fails.
Deletes the given Swift object.
container – The name of the container in which Swift object is placed.
obj – The name of the object in Swift to be deleted.
SwiftObjectNotFoundError, if object is not found in Swift.
SwiftOperationError, if operation with Swift fails.
Downloads a given object from Swift.
object – The name of the object in Swift
container – The name of the container for the object. Defaults to the value set in the configuration options.
Swift object
utils.Error, if the Swift operation fails.
Returns the temp url for the given Swift object.
container – The name of the container in which Swift object is placed.
obj – The name of the Swift object.
timeout – The timeout in seconds after which the generated url should expire.
The temp url for the object.
SwiftOperationError, if any operation with Swift fails.
Retrieves the information about the given Swift object.
container – The name of the container in which Swift object is placed.
obj – The name of the object in Swift
The information about the object as returned by Swift client’s head_object call.
SwiftOperationError, if operation with Swift fails.
Update the metadata of a given Swift object.
container – The name of the container in which Swift object is placed.
obj – The name of the object in Swift
object_headers – the headers for the object to pass to Swift
SwiftOperationError, if operation with Swift fails.
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.