Loading

×Sorry to interrupt
This page has an error. You might just need to refresh it.
[NoErrorObjectAvailable] Uncaught ReferenceError: addCTracking is not defined
Failing descriptor: {markup://c:KM_ArticleThemeLayout}

Refresh

Cookie Preference Center

General Information on cookies

When you visit our website, we use cookies to ensure that we give you the best experience. This information does not usually directly identify you, but it can give you a more personalized web experience. Because we respect your right to privacy, you can choose not to allow some types of cookies by clicking on the different category headings to find out more and change your settings. However, blocking some types of cookies may impact your experience on the site and the services we are able to offer. Further information can be found in our

Cookie Policy.

Strictly Necessary

Strictly Necessary

Always Active

Strictly Necessary

Strictly necessary cookies are always enabled since they are essential for our website to function. They enable core functionality such as security, network management, and website accessibility. You can set your browser to block or alert you about these cookies, but this may affect how the website functions. For more information please visit www.aboutcookies.org or www.allaboutcookies.org.

Cookie Details‎

Performance

Performance

Performance

Performance cookies are used to analyze the user experience to improve our website by collecting and reporting information on how you use it. They allow us to know which pages are the most and least popular, see how visitors move around the site, optimize our website and make it easier to navigate.

Cookie Details‎

Please confirm your settings by refreshing the page.

Functional

Functional

Functional

Functional cookies help us keep track of your past browsing choices so we can improve usability and customize your experience. These cookies enable the website to remember your preferred settings, language preferences, location and other customizable elements such as font or text size. If you do not allow these cookies, then some or all of these services may not function properly.

Cookie Details‎

Advertising

Advertising

Advertising

Advertising cookies are used to send you relevant advertising and promotional information. They may be set through our site by third parties to build a profile of your interests and show you relevant advertisements on other sites. These cookies do not directly store personal information, but their function is based on uniquely identifying your browser and internet device.

Cookie Details‎

Advertising Cookies

Consent Leg.Interest

Select All Vendors

Select All Vendors

Select All Hosts

Select All

Clear Filters

Information storage and access

Apply

Confirm My Choices Reject All Allow All

My Subscriptions

Loading

Knowledge Base

SDK Managed Object Browser (568529)

Last Updated: 9/30/2008Categories: Total Views: 12127Language:
English

Subscribe to get an email
newsletter with new updates

Please provide article feedback:

Details

How do you invoke an operation in the Managed Object Browser?

Solution

Note: Remember that you are connected to a server when you use the Managed Object Browser. Therefore, when you invoke operations, you are potentially making changes to the objects on the server. For example, if you invoke DeleteVm() on a virtual machine, you are deleting that virtual machine.

After you access the Managed Object Browser, find the managed object that contains the operation you want to invoke.
Refer to the VMware Infrastructure SDK Programming Guide for information about accessing and navigating the Managed Object Browser.

After the list of properties, you see a list of the operations for this managed object, as shown in the following figure.

Click the link for the operation you want to invoke.
A window appears, in which you can enter the parameters.

Enter the parameter's value in the Value field.
See the section below about entering parameter values.

Click Invoke Method.

Entering Parameter Values

For primitive arguments (int, string, boolean, and so on), for which the input field is a single text field (for example, partialUpdates in the figure above), enter the value as you see the value in text form. For example, in the partialUpdates field above, enter true or false.

For complex types (structured data), enter the value according to the schema definition from WSDL. In the VMware Infrastructure SDK Reference Guide, each page describing an object contains a Show WSDL type definition link. Clicking this link displays the definition and enables you to construct the parameter value.

For example, the CloneVM_Task operation requires a Folder managed object reference. If you click the Show WSDL type definition link for ManagedObjectReference in the reference guide, the following information appears:

http://www.w3.org/2001/XMLSchema" name="ManagedObjectReference">

This information tells you that you should enter the parameter value in the field as follows:

folder-123

In this example, folder is the name of the parameter, type is the type of managed object, and folder-123 is the managed object ID. You can find the managed object ID in the Managed Object Browser at the top of the page that describes the managed object.

Some complex types have nested complex types. For example, CreateFilter() has a spec parameter which is a PropertyFilterSpec. Once you find PropertyFilterSpec in the reference guide and click the Show WSDL type definition link, you see the following:

http://www.w3.org/2001/XMLSchema" name="PropertyFilterSpec">

This information tells you that the PropertyFilterSpec has two properties, propSet and objectSet, each of which is a complex type. Find the PropertySpec in the reference guide and you see the following WSDL definition:

http://www.w3.org/2001/XMLSchema" name="PropertySpec">

maxOccurs="unbounded"/>

With these as your guide (and by checking the WSDL definition of the ObjectSpec), the value in the parameter field might look something like:

VirtualMachine
false

config.guestFullName

group-v3

In this example, spec represents the parameter name, propSet and objectSet represent the two properties of the PropertyFilterSpec, and the tags within each of those represent their properties. Notice the order of the properties. The properties must follow the order of the properties in the WSDL definition. Also notice . This is a managed object, so the tag includes a type attribute and the value is a managed object ID.

An array is represented by multiple, sequential tags. For example:

VirtualMachine
false

config.guestFullName

config.guestId

group-v3

Notice the multiple tags. Multiple tags can be represented as follows:

VirtualMachine
false

config.guestFullName

config.guestId

HostSystem
false

runtime.connectionState

group-v3

Detectable by VMware SkylineTM

Actions

Copy

link to clipboard
copied!

Print

Language:
English

Attachments

Additional Resources

KB
•
End Of General Availability of the Free vSphere Hypervisor (ESXi 7.x and 8.x) (2107518)

KB
•
vRealize Suite Lifecycle Manager 1.x アプライアンスの IP アドレスを変更する方法 (52436)

Results 1-2 of 2

Ask The Community

Get answers quickly from VMware experts in the community

Post Subject

CONTINUE IN COMMUNITIES

Related Products:

VMware VirtualCenter

VMware ESX Server

Related Versions:

VMware VirtualCenter 2.0.x

VMware ESX Server 3.0.x

Take Our Survey

Support Assistant