# Managed Object - SimpleCommand(vim.SimpleCommand)

See also
  ServiceManagerServiceInfo, SimpleCommandEncoding
Since
  vSphere API 5.1

## Managed Object Description

A managed object that wraps the execution of a single arbitrary command. The specific command executed is assumed to be known from the service name by the client invoking this command. This object presents a generic interface for such services.

Properties

Name | Type | Description
--- | --- | ---
encodingType | SimpleCommandEncoding | The encoding type used in the result.
entity | ServiceManagerServiceInfo | A description of the service.

Methods

Methods defined in this Managed Object
ExecuteSimpleCommand

# ExecuteSimpleCommand(Execute)

The single function execution point for this simple command. The actual effects of this command depend upon the service handler registered for this instance.

Required Privileges
  Global.ServiceManagers

Parameters

Name | Type | Description
--- | --- | ---
_this | ManagedObjectReference | A reference to the SimpleCommand used to make the method call.
arguments* P | xsd:string[] | An arbitrary collection of arguments. Since VI API 2.5

*Need not be set P Required privilege: arguments

Return Value

Type | Description
--- | ---
xsd:string |

Faults

Type | Description
--- | ---
RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error.

Events

Type
None

Show WSDL type definition
<element xmlns="http://www.w3.org/2001/XMLSchema" xmlns:vim25="urn:vim25" name="ExecuteSimpleCommand" type="vim25:ExecuteSimpleCommandRequestType"/> <element xmlns="http://www.w3.org/2001/XMLSchema" xmlns:vim25="urn:vim25" name="ExecuteSimpleCommandResponse"> <complexType> <sequence> <element name="returnval" type="xsd:string"/> </sequence> </complexType> </element>