libcloud.storage.drivers.ovh module
- class libcloud.storage.drivers.ovh.OvhStorageDriver(key, secret=None, secure=True, host=None, port=None, region='sbg', url=None, **kwargs)[source]
Bases:
BaseS3StorageDriver
- Parameters:
key (
str
) – API key or username to be used (required)secret (
str
) – Secret password to be used (required)secure (
bool
) – Whether to use HTTPS or HTTP. Note: Some providers only support HTTPS, and it is on by default.host (
str
) – Override hostname used for connections.port (
int
) – Override port used for connections.api_version (
str
) – Optional API version. Only used by drivers which support multiple API versions.region (
str
) – Optional driver region. Only used by drivers which support multiple regions.
- Return type:
None
- connectionCls
alias of
S3SignatureV4Connection
- get_object_cdn_url(obj, ex_expiry=24.0)[source]
Return an object CDN URL.
- Parameters:
obj (
libcloud.storage.base.Object
) – Object instance- Returns:
A CDN URL for this object.
- Return type:
str
- region_name = 'sbg'
- website = 'https://www.ovhcloud.com/en/public-cloud/object-storage/'