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.VapiInterface- The - 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.VapiStruct- The - Instances.FilterSpecclass contains attributes used to filter the results when listing user namespaces (see- Instances.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 ( - stror- None) – Identifier of the user. This attribute was added in vSphere API 8.0.0.1. If- set, only return namespaces the given user has permissions to access. If None, this filter is not applied.
- groups ( - listof- stror- None) – List of group names. This attribute was added in vSphere API 8.0.0.1. If- set, 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.VapiStruct- The - 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.FilterSpecor- None) – 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.StubFactoryBase- Initialize StubFactoryBase - Parameters
- stub_config ( - vmware.vapi.bindings.stub.StubConfiguration) – Stub config instance