PowerCLI Reference

DynamicTypeManager - Object

Property of
EsxCli
Extends
DynamicManagedObject

Properties

NameTypeNotes
Properties inherited from DynamicManagedObject
Id, Uid

Methods

Methods defined in this object
QueryMoInstances, QueryTypeInfo, CreateDynamicManagedObject, InvokeOperation

QueryMoInstances

Retrieves information about the available ESXCLI namespaces/applications. You can use the returned IDs to create DynamicManagedObjects and to invoke methods.
Syntax
MoInstanceDescriptor QueryMoInstances()
Return value
MoInstanceDescriptor

Parameters

NameTypeDescription
idStringoptional; pass null to retrieve all MoInstanceDescriptors

QueryTypeInfo

Retrieves metadata information about the managed and data types available in ESXCLI. Keys are member names, and values are member values.
Syntax
IDictionary<string, object> QueryTypeInfo()
Return value
IDictionary

Parameters

NameTypeDescription
typeSubstringStringoptional; pass null to retrieve the info for all types

CreateDynamicManagedObject

Creates a DynamicManagedObject by initializing it's id. No server communication is involved. This object can be used to invoke operations.
Syntax
DynamicManagedObject CreateDynamicManagedObject()
Return value
DynamicManagedObject

Parameters

NameTypeDescription
IdStringThe ID of the managed object. You can obtain it by using the QueryMoInstances method.

InvokeOperation

Invokes a method of an ESXCLI's application. The result is either a primitive type or a dictionary that maps a complex return type.
Syntax
Object InvokeOperation(String name, IDictionary parameters)
Return value
Object

Parameters

NameTypeDescription
nameStringThe name of the method to invoke.
parametersIDictionaryThe parameters names/values.

Copyright © VMware, Inc. All rights reserved.