Skip to content

Instantly share code, notes, and snippets.

@gagomes
Created August 13, 2015 20:42
Show Gist options
  • Save gagomes/b3d81ddd02ea8b09d4c1 to your computer and use it in GitHub Desktop.
Save gagomes/b3d81ddd02ea8b09d4c1 to your computer and use it in GitHub Desktop.
In [13]: s.xenapi.VDI.get_all_records_where('field "name__label" = "win7.iso"')
Out[13]:
{'OpaqueRef:d10ac97a-137d-3258-dcbf-23d292f96eb7': {'SR': 'OpaqueRef:fca40ee2-08df-0a57-139e-6cce980f621a',
'VBDs': [],
'allow_caching': False,
'allowed_operations': ['copy', 'snapshot'],
'crash_dumps': [],
'current_operations': {},
'is_a_snapshot': False,
'location': 'win7.iso',
'managed': True,
'metadata_latest': False,
'metadata_of_pool': 'OpaqueRef:NULL',
'missing': False,
'name_description': '',
'name_label': 'win7.iso',
'on_boot': 'persist',
'other_config': {'content_id': '57160295-88e0-9f62-22fb-1e593fdadfe3'},
'parent': 'OpaqueRef:NULL',
'physical_utilisation': '2400419840',
'read_only': True,
'sharable': False,
'sm_config': {},
'snapshot_of': 'OpaqueRef:NULL',
'snapshot_time': <DateTime '19700101T00:00:00Z' at 7f6053627878>,
'snapshots': [],
'storage_lock': False,
'tags': [],
'type': 'user',
'uuid': '3b789fa7-3110-439d-8a27-977b7ff002d8',
'virtual_size': '2400419840',
'xenstore_data': {}}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment