Or, if you're using TypeScript, you can always do ...
# contribute
b
Or, if you're using TypeScript, you can always do something like
Copy code
let datastore = await vsphere.getDatastore({
  name: "bdf1000-01",
  datacenterId: "datacenter-21"
});

console.log(datastore.id);