## PowerCLI Reference

# DynamicTypeManager - Object

Property of
  EsxCli

Extends
  DynamicManagedObject

Properties

Name | Type | Notes
--- | --- | ---
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

Name | Type | Description
--- | --- | ---
id | String | optional; 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

Name | Type | Description
--- | --- | ---
typeSubstring | String | optional; 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

Name | Type | Description
--- | --- | ---
Id | String | The 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

Name | Type | Description
--- | --- | ---
name | String | The name of the method to invoke.
parameters | IDictionary | The parameters names/values.

Copyright © VMware, Inc. All rights reserved.