vcenter_sso¶
Client for vCenter SSO identity APIs under /api/vcenter/identity.
Covers the vSphere 9 SSO identity surface used for platform authentication:
external identity providers (Active Directory / LDAP / OIDC federation), and
the local vsphere.local group and user CRUD endpoints.
Auth is delegated to saltext.vcf.utils.vcenter which manages the
/api/session token session.
- saltext.vcf.clients.vcenter_sso.providers_list(opts, profile=None)[source]¶
Return the list of registered identity providers.
- saltext.vcf.clients.vcenter_sso.providers_get(opts, provider_id, profile=None)[source]¶
Return a single identity provider by id.
- saltext.vcf.clients.vcenter_sso.providers_get_or_none(opts, provider_id, profile=None)[source]¶
Return the provider or
Noneif it does not exist.
- saltext.vcf.clients.vcenter_sso.providers_create(opts, spec, profile=None)[source]¶
Create a new identity provider.
spec is passed through as the POST body; typical keys include
config_tag(ActiveDirectory,LDAP,Oauth2,Oidc),domain_name,auth_type,username,password, and any provider-specific*_configurationblock.
- saltext.vcf.clients.vcenter_sso.providers_update(opts, provider_id, spec, profile=None)[source]¶
PATCH an existing identity provider.
- saltext.vcf.clients.vcenter_sso.providers_delete(opts, provider_id, profile=None)[source]¶
Delete an identity provider by id.
- saltext.vcf.clients.vcenter_sso.groups_list(opts, domain=None, profile=None)[source]¶
List groups, optionally filtered to a specific
domain.
- saltext.vcf.clients.vcenter_sso.groups_get(opts, group, profile=None)[source]¶
Return a single group by id.
- saltext.vcf.clients.vcenter_sso.groups_get_or_none(opts, group, profile=None)[source]¶
Return the group or
Noneif it does not exist.
- saltext.vcf.clients.vcenter_sso.groups_create(opts, name, domain, description='', profile=None)[source]¶
Create a group in domain.
Extra fields (e.g. initial members) may be provided by the caller wrapping them via
spec; this helper covers the commonname/domain/descriptionshape used againstvsphere.local.
- saltext.vcf.clients.vcenter_sso.groups_update(opts, group, spec, profile=None)[source]¶
PATCH a group. spec accepts
descriptionand other mutable fields.
- saltext.vcf.clients.vcenter_sso.groups_delete(opts, group, profile=None)[source]¶
Delete a group by id.
- saltext.vcf.clients.vcenter_sso.group_add_member(opts, group, member, profile=None)[source]¶
Add a user or nested group to group.
member is the fully-qualified principal (
user@domainor the SSO group id); vSphere accepts either a user or a group here.
- saltext.vcf.clients.vcenter_sso.group_remove_member(opts, group, member, profile=None)[source]¶
Remove a member from group.
- saltext.vcf.clients.vcenter_sso.users_list(opts, domain=None, profile=None)[source]¶
List users, optionally filtered to a specific
domain.
- saltext.vcf.clients.vcenter_sso.users_get(opts, user, profile=None)[source]¶
Return a single user by id.
- saltext.vcf.clients.vcenter_sso.users_get_or_none(opts, user, profile=None)[source]¶
Return the user or
Noneif it does not exist.
- saltext.vcf.clients.vcenter_sso.users_create(opts, username, domain, password, description='', email=None, profile=None)[source]¶
Create a local SSO user.
Only supported against the local (
vsphere.local) domain; external identity providers manage their own users.