feat(xen-api): add getRecordByUuid()
This commit is contained in:
parent
41506e785e
commit
3e9425bf79
@ -509,6 +509,13 @@ export class Xapi extends EventEmitter {
|
||||
return record
|
||||
}
|
||||
|
||||
async getRecordByUuid (type, uuid) {
|
||||
return this.getRecord(
|
||||
type,
|
||||
await this._sessionCall(`${type}.get_by_uuid`, [uuid])
|
||||
)
|
||||
}
|
||||
|
||||
@cancelable
|
||||
getResource ($cancelToken, pathname, { host, query, task }) {
|
||||
return this._autoTask(task, `Xapi#getResource ${pathname}`).then(
|
||||
|
Loading…
Reference in New Issue
Block a user