
Fixes RST documents to include list mark up when appropriate. closes: https://github.com/vmware/pyvmomi/issues/76
6.2 KiB
vim.ExtensionManager
This managed object type provides directory and basic management services for all registered extensions.Clients use the ExtensionManager, available in ServiceInstance , to access extension objects.While several authentication methods are available for extension servers to use (see SessionManager ), only one authentication method is valid for an extension at any given time.
- since
Attributes
- extensionList ([vim.Extension]):
- privilege: System.View
The list of currently registered extensions.
Methods
- UnregisterExtension(extensionKey):
-
Unregisters the specified extension if it exists.
- Privilege:
-
Extension.Unregister
- Args:
-
- extensionKey (str):
-
Unique name of extension to unregister.
- Returns:
-
None
Raises:
- vim.fault.NotFound:
-
if the specified extension is not registered.
- FindExtension(extensionKey):
-
Returns extension with the given key, if any.
- Privilege:
-
System.View
- Args:
-
- extensionKey (str):
-
Key to search for.
- Returns:
-
- vim.Extension:
-
Extension that matches given key, if any.
- RegisterExtension(extension):
-
Registers extension.
- Privilege:
-
Extension.Register
- Args:
-
- extension (vim.Extension):
-
Extension description to register.
- Returns:
-
None
Raises:
- vmodl.fault.InvalidArgument:
-
if the Extension description is incomplete or an extension is already registered with the given unique key, or if the extension is an OVF extension and its section types overlap with other registered OVF extensions.
- UpdateExtension(extension):
-
If the key specified in the extension exists, the existing record is updated.If thesubjectNameproperty of the Extension object has a value, and it is different from the existing value, this method will unset any public key or certificate associated with the extension.
- Privilege:
-
Extension.Update
- Args:
-
- extension (vim.Extension):
-
Updated extension description.
- Returns:
-
None
Raises:
- vim.fault.NotFound:
-
if the specified extension key is not registered.
- vmodl.fault.InvalidArgument:
-
if the Extension description is incomplete or invalid, or if the extension is an OVF extension and its section types overlap with other registered OVF extensions.
- GetPublicKey():
-
Returns VirtualCenter Server public key.
- Privilege:
-
System.View
Args:
- Returns:
-
- str:
-
Public key of VirtualCenter Server, encoded in PEM (privacy-enhanced mail) format.
- SetPublicKey(extensionKey, publicKey):
-
Sets extension's public key.This method will unset any subject name or certificate associated with the extension.
- Privilege:
-
Extension.Update
- Args:
- Returns:
-
None
Raises:
- vmodl.fault.InvalidArgument:
-
if the public key is invalid.
- SetExtensionCertificate(extensionKey, certificatePem):
-
Update the stored authentication certificate for a specified extension. Updates the registration of the specified extension with the thumbprint of the X.509 client certificate provided over SSL handshake, or by thecertificatePemargument. The thumbprint will be used to authenticate the extension during invocations of LoginExtensionByCertificate .NOTE: No verification is performed on the received certificate, such as expiry or revocation.This method will unset any public key or subject name associated with the extension. since: vSphere API 4.0
- Privilege:
-
Extension.Update
- Args:
- Returns:
-
None
Raises:
- vim.fault.NotFound:
-
if an extension specified byextensionKeyis not registered.
- vim.fault.NoClientCertificate:
-
if certificatePem is not specified, and no certificate was passed over SSL handshake.
- vmodl.fault.InvalidArgument:
-
if the certificate described bycertificatePemis not in PEM format, or could not be decoded to an X.509 certificate.
- QueryManagedBy(extensionKey):
-
Find entities managed by an extension. These can be either virtual machines or vApps. since: vSphere API 5.0
- Privilege:
-
System.View
- Args:
-
- extensionKey (str):
-
Key of the extension to find managed entities for.
- Returns:
-
- [vim.ManagedEntity]:
-
List of entities managed by the extension.
- QueryExtensionIpAllocationUsage(extensionKeys):
-
Query statistics about IP allocation usage, either system wide or for specified extensions.Refer to IpPoolManager for details. since: vSphere API 5.1
- Privilege:
-
System.View
- Args:
-
- extensionKeys (str, optional):
-
List of extensions whose IP allocation is being queried. If no extension keys are specified then allocation data for all registered extensions are returned.
- Returns:
-
- [vim.ExtensionManager.IpAllocationUsage]:
-
List of IP allocation usage.