Add function for get_image_bundle_by_container_id and tests
Closed this issue · 2 comments
mharista commented
Similar to what is in Ansible module_utils.
mharista commented
Current implementation is the same across all API versions.
def get_image_bundle_by_container_id(self, c_id, start=0, end=0, scope='false'):
''' Returns a list of ImageBundles applied to the given container.
Args:
c_id (str): The container ID (key) to query.
start (int): Start index for the pagination. Default is 0.
end (int): End index for the pagination. If end index is 0
then all the records will be returned. Default is 0.
scope (string) the session scope
'''
return self.clnt.get('/provisioning/getImageBundleByContainerId.do?'
'containerId=%s&startIndex=%d&endIndex=%d&sessionScope=%s'
% (c_id, start, end, scope),
timeout=self.request_timeout)