summaryrefslogtreecommitdiffstats
path: root/cli/objects
diff options
context:
space:
mode:
Diffstat (limited to 'cli/objects')
-rw-r--r--cli/objects/client.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/cli/objects/client.py b/cli/objects/client.py
index 9404635..e7e3d31 100644
--- a/cli/objects/client.py
+++ b/cli/objects/client.py
@@ -28,3 +28,17 @@ class OgClient():
'type': 'computer'}}
r = rest.get('/hardware', payload=payload)
print(r.json())
+
+ @staticmethod
+ def get_client_properties(rest, args):
+ parser = argparse.ArgumentParser()
+ parser.add_argument('--id',
+ nargs=1,
+ required=True,
+ help='ID of the computer scope')
+ parsed_args = parser.parse_args(args)
+
+ payload = {'scope': {'id': int(parsed_args.id[0]),
+ 'type': 'computer'}}
+ r = rest.get('/client/properties', payload=payload)
+ print(r.json())