VGPU
get_all
>>> print xen.VGPU.get_all(session)
{
'Status': 'Success',
'Value': ['OpaqueRef:c7657581-4e6b-f1fd-37de-6068b8371085',
'OpaqueRef:7e9c9f86-eff9-f0ca-7c73-ddc93f07e95c']
}
get_all_records
>>> print xen.VGPU.get_all_records(session)
{
'Status': 'Success',
'Value': {
'OpaqueRef:c7657581-4e6b-f1fd-37de-6068b8371085':
{
'uuid': '45473016-5987-90d7-0814-e2cf822666e9',
'other_config': {},
'VM': 'OpaqueRef:540ab638-06f9-0dbf-b053-ee45b5bdf805',
'currently_attached': True,
'GPU_group': 'OpaqueRef:a89e58f5-c3cf-123f-ca97-6faabc599fec',
'device': '0'
},
'OpaqueRef:7e9c9f86-eff9-f0ca-7c73-ddc93f07e95c':
{
'uuid': 'f9a15a4e-b30f-87ad-e6f6-d2520961be67',
'other_config': {},
'VM': 'OpaqueRef:89694f52-c633-df12-7d48-e62d4755f7c9',
'currently_attached': True,
'GPU_group': 'OpaqueRef:a89e58f5-c3cf-123f-ca97-6faabc599fec',
'device': '0'
}
}
}
create
type | name |
VM | ref VM |
GPU group | ref GPU group |
string | device |
(string → string) | Map other config |
>>> print xen.VGPU.create(session,
'OpaqueRef:89694f52-c633-df12-7d48-e62d4755f7c9',
'OpaqueRef:a89e58f5-c3cf-123f-ca97-6faabc599fec',
'0',
{})
{
'Status': 'Success',
'Value': 'OpaqueRef:40ca7c3a-f26c-707a-651b-fd2ec8024141'
}
destroy
>>> print xen.VGPU.destroy(session,'OpaqueRef:7e9c9f86-eff9-f0ca-7c73-ddc93f07e95c')
{
'Status': 'Success',
'Value': ''
}