rubrik_polaris.storage package¶
Submodules¶
rubrik_polaris.storage.ebs module¶
Collection of functions that manipulate storage components.
-
rubrik_polaris.storage.ebs.
get_storage_object_ids_ebs
(self, match_all=True, **kwargs)¶ Retrieves ObjectIds for EBS Snappables from Polaris
- Parameters
match_all (bool) – Set to False to match ANY defined criteria
tags (dict) – Optional allows simple qualification of tags
kwargs (dict) – Optional any top level object from the get_storage_ebs call
- Returns
A list of EBS object IDs matching results of query
- Return type
list
- Raises
RequestException – If the query to Polaris returned an error
Examples
>>> snappables = client.get_object_ids_ebs(tags={"Environment": "staging"}) >>> for snappable in snappables: ... snapshot = client.get_snapshots(snappable, recovery_point='latest') ... if snapshot: ... print(snapshot[0])
-
rubrik_polaris.storage.ebs.
get_storage_ebs
(self)¶ Retrieves details for all EBS Snappables from Polaris
Args:
- Returns
Dictionary of all EBS Snappable details
- Return type
dict
- Raises
RequestException – If the query to Polaris returned an error
Examples
>>> snappables = client.get_storage_ebs()
Module contents¶
Collection of functions that interact with Storage object primitives.