Pools¶
Creating Pools¶
Creating pools is done with system.objects.pools.create:
>>> pool = system.pools.create()
You can also specify physical and virtual capacity:
>>> pool = system.pools.create(physical_capacity=TiB, virtual_capacity=TiB)
S3 Pools¶
To create one, pass type='S3'. For S3 pools only the physical capacity is supported;
virtual_capacity is ignored and should not be used.
Create an S3 pool with explicit physical capacity:
>>> s3_pool = system.pools.create(type='S3', physical_capacity=TiB)
Updating Pools¶
Updating fields such as name and capacities are done like any other object update operations in InfiniSDK:
>>> pool.update_name('new_name')
>>> pool.update_physical_capacity(pool.get_physical_capacity() * 2)
Deleting Pools¶
Deleting a pool is done using Pool.delete():
>>> pool.delete()
>>> pool.is_in_system()
False
Administered Pools¶
Use infinisdk.infinibox.pool.PoolBinder.get_administered_pools() to obtain the list of pools the current user can administer:
>>> pools = system.pools.get_administered_pools()