- 4. Using the OpenStack SDK
- Service Proxies
- SFS Turbo API
SFS Turbo API¶
The Shared File System Turbo Class¶
The SFS Turbo high-level interface is available through the sfsturbo
member of a Connection
object. The
sfsturbo
member will only be added if the
otcextensions.sdk.register_otc_extensions(conn)
method is called.
Share Operations¶
- class otcextensions.sdk.sfsturbo.v1._proxy.Proxy(session, statsd_client=None, statsd_prefix=None, prometheus_counter=None, prometheus_histogram=None, influxdb_config=None, influxdb_client=None, *args, **kwargs)
- shares(**query)
Return a generator of sfs turbo file systems
- Parameters:
query (dict) – Optional query parameters to be sent to limit the resources being returned.
- Returns:
A generator of share objects
- Return type:
- delete_share(share, ignore_missing=True)
Delete a sfs turbo file system
- Parameters:
share – share id or an instance of
Share
ignore_missing (bool) – When set to
False
ResourceNotFound
will be raised when the vpc route does not exist. When set toTrue
, no exception will be set when attempting to delete a nonexistent route.
- Returns:
none
- get_share(share)
Get a sfs turbo file system by id
- find_share(name_or_id, ignore_missing=True)
Find a single sfs turbo file system by id
- Parameters:
name_or_id – The name or ID of a share
ignore_missing (bool) – When set to
False
ResourceNotFound
will be raised when the vpc does not exist. When set toTrue
, no exception will be set when attempting to delete a nonexistent peering.
- Returns:
One
Share
- extend_capacity(share, new_size)
Extend the capacity of the file system
- Parameters:
share – The value can be the ID of a share or a
Share
instance.new_size – Specifies the new capacity (GB) of the shared file system.
- change_security_group(share, security_group_id)
Change the security group bound to an SFS Turbo file system.
- Parameters:
share – The value can be the ID of a share or a
Share
instance.security_group_id – Specifies the ID of the security group to be modified.