swevm / scaleio-py

ScaleIO API Bindings
Apache License 2.0
13 stars 14 forks source link

add guid to sdc object #16

Closed wallnerryan closed 9 years ago

wallnerryan commented 9 years ago

had a need to get an sdc by its GUID, added the ability to do so.

example

>>> sio.get_sdc_by_guid("C1892D0B-99FF-4B7C-8DC2-26572C91905B")
<ScaleIO_SDC> @ 15323280:
                    guid: C1892D0B-99FF-4B7C-8DC2-26572C91905B
                      id: 605b5ad700000002
                   links: [Link : Target: '/api/instances/Sdc::605b5ad700000002' Relative: 'self', Link : Target: '/api/instances/Sdc::605b5ad700000002/relationships/Statistics' Relative: '/api/Sdc/relationship/Statistics', Link : Target: '/api/instances/Sdc::605b5ad700000002/relationships/Volume' Relative: '/api/Sdc/relationship/Volume', Link : Target: '/api/instances/System::4713fba2003dba45' Relative: '/api/parent/relationship/systemId']
      mdmConnectionState: Connected
                    name: None
                   sdcIp: 192.168.50.13