com.vmware.vcenter.namespaces package
Submodules
com.vmware.vcenter.namespaces.user_client module
The com.vmware.vcenter.namespaces.user_client module provides classes to
access namespaces for non-administrative users.
- class com.vmware.vcenter.namespaces.user_client.Instances(config)
 Bases:
vmware.vapi.bindings.stub.VapiInterfaceThe
Instancesclass provides methods to access namespaces for non-administrative users.- Parameters
 config (
vmware.vapi.bindings.stub.StubConfiguration) – Configuration to be used for creating the stub.
- class FilterSpec(username=None, groups=None)
 Bases:
vmware.vapi.bindings.struct.VapiStructThe
Instances.FilterSpecclass contains attributes used to filter the results when listing user namespaces (seeInstances.list()). This class was added in vSphere API 8.0.0.1.Tip
The arguments are used to initialize data attributes with the same names.
- Parameters
 username (
strorNone) – Identifier of the user. This attribute was added in vSphere API 8.0.0.1. Ifset, only return namespaces the given user has permissions to access. If None, this filter is not applied.groups (
listofstrorNone) – List of group names. This attribute was added in vSphere API 8.0.0.1. Ifset, only return namespaces that are associated with the given group(s). If None, this filter is not applied.
- class Summary(namespace=None, master_host=None)
 Bases:
vmware.vapi.bindings.struct.VapiStructThe
Instances.Summaryclass contains information about a namespace that user is authorized to access.Tip
The arguments are used to initialize data attributes with the same names.
- Parameters
 namespace (
str) – Identifier of the namespace. When clients pass a value of this class as a parameter, the attribute must be an identifier for the resource type:com.vmware.vcenter.namespaces.Instance. When methods return a value of this class as a return value, the attribute will be an identifier for the resource type:com.vmware.vcenter.namespaces.Instance.master_host (
str) – IP address or FQDN of the API endpoint for the given namespace.
- list(filter=None)
 Returns namespaces matching the
Instances.FilterSpec.- Parameters
 filter (
Instances.FilterSpecorNone) – Specification of matching principals for which namespaces should be returned. This parameter was added in vSphere API 8.0.0.1. If None, the behavior is equivalent to a FilterSpec with all attributes None, and this method will return the namespaces that user making the call is authorized to access.- Return type
 - Returns
 List of Namespace identifiers together with the API endpoint for each namespace.
- Raise
 com.vmware.vapi.std.errors_client.Errorif the system reports an error while responding to the request.- Raise
 com.vmware.vapi.std.errors_client.UnauthenticatedIf the user can not be authenticated.- Raise
 com.vmware.vapi.std.errors_client.UnauthorizedIf the user does not have Namespaces.ListAccess privilege to perform this operation.
- class com.vmware.vcenter.namespaces.user_client.StubFactory(stub_config)
 Bases:
vmware.vapi.bindings.stub.StubFactoryBaseInitialize StubFactoryBase
- Parameters
 stub_config (
vmware.vapi.bindings.stub.StubConfiguration) – Stub config instance