feat(xen-api#getField): get a specific record field
This commit is contained in:
parent
58e8d75935
commit
705d069246
@ -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).
|
||||
|
Loading…
Reference in New Issue
Block a user