From f9ac07fda1fb124ff8ee8aeb7f5e40efe49a8b8d Mon Sep 17 00:00:00 2001 From: David Twersky Date: Fri, 3 Mar 2017 12:49:56 -0500 Subject: [PATCH] Added pure_array to get details from the Array itself, e.g. purearray space etc. --- purestorage/purestorage.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/purestorage/purestorage.py b/purestorage/purestorage.py index cb6e6b8..418a8f7 100644 --- a/purestorage/purestorage.py +++ b/purestorage/purestorage.py @@ -2050,6 +2050,20 @@ def disconnect_array(self, address): return self._request("DELETE", "array/connection/{0}".format(address)) + def list_array(self, **kwargs): + """Return a list of dictionaries describing the array. + + :param \*\*kwargs: See the REST API Guide on your array for the + documentation on the request: + **GET array** + :type \*\*kwargs: optional + + :returns: A list of dictionaries describing the array. + :rtype: ResponseList + + """ + return self._request("GET", "array", kwargs) + def list_array_connections(self, **kwargs): """Return list of connected arrays.