vim_role¶
vCenter authorization roles via SOAP AuthorizationManager.
REST (/api/vcenter/...) doesn’t expose authorization role CRUD in
VCF 9.x; the SOAP AuthorizationManager is the only path.
Role identity model:
Each role has a server-assigned integer
roleIdand a humanname.System roles (
Admin,ReadOnly,View,Anonymous, etc.) have thesystemflag set and cannot be modified or removed.
- saltext.vcf.clients.vim_role.list_(opts, profile=None)[source]¶
Return a list of
{role_id, name, system, info, privilege}dicts.
- saltext.vcf.clients.vim_role.get(opts, name, profile=None)[source]¶
Return the role record for name, raising
LookupErrorif missing.
- saltext.vcf.clients.vim_role.create(opts, name, privileges, profile=None)[source]¶
Create a custom role with the given privileges list.
Returns the new
roleId.
- saltext.vcf.clients.vim_role.update(opts, name, privileges, profile=None)[source]¶
Replace the privilege set on the role name.