feat(xen-api#getField): get a specific record field

This commit is contained in:
Julien Fontanet 2019-02-22 18:31:16 +01:00
parent 58e8d75935
commit 705d069246

View File

@ -501,6 +501,10 @@ export class Xapi extends EventEmitter {
return promise
}
getField(type, ref, field) {
return this._sessionCall(`${type}.get_${field}`, [ref])
}
// Nice getter which returns the object for a given $id (internal to
// this lib), UUID (unique identifier that some objects have) or
// opaque reference (internal to XAPI).