The data type is <class 'pyVmomi.VmomiSupport.vim.ResourcePool'>
and when I return the rp I get 'vim.ResourcePool:resgroup-151'
(with the single quote characters there) but are there any methods that can just return the resgroup-151
?
Asked
Active
Viewed 322 times
0

Optical Carrier
- 368
- 1
- 4
- 14
1 Answers
0
return rp.name
.
Managed objects can have both properties and operations.
<class 'pyVmomi.VmomiSupport.vim.ResourcePool'>
is a managed object and few of it properties are :
summary, owner, alarmActionsEnabled, configIssue, configStatus, customValue, declaredAlarmState, disabledMethod, effectiveRole, name, overallStatus, parent, permission, recentTask, tag, triggeredAlarmState

Shashank Singh
- 647
- 1
- 5
- 22