VMware vSphere Automation SDK Perl
The VMware vSphere Automation SDK for Perl supports the client-side vSphere Automation API for access to vSphere services and capabilities
 All Classes Files Functions
Classes | List of all members
Com::Vmware::Appliance::Techpreview::Services Class Reference
Inheritance diagram for Com::Vmware::Appliance::Techpreview::Services:
Com::Vmware::Vapi::Bindings::VapiInterface

Classes

class  ServiceInfo
 
class  ServiceOps
 

Avaliable Methods

public method restart ()
 
public method stop ()
 
public method new ()
 
public method list ()
 
public method control ()
 

Detailed Description

Com::Vmware::Appliance::Techpreview::Services interface provides methods Manages services.

Member Function Documentation

public method Com::Vmware::Appliance::Techpreview::Services::control ( )

Manage a service with arbitrary command and arguments.

Parameters
args[REQUIRED] Array of arguments. . The value must be Array of String.
name[REQUIRED] Name of the service. . The value must be String.
timeout[REQUIRED] Timeout in seconds. Zero (0) means no timeout. . The value must be Long.
Exceptions
Com::Vmware::Vapi::Std::Errors::ErrorGeneric error
Code:
click to view
public method Com::Vmware::Appliance::Techpreview::Services::list ( )

Get a list of all known services.

Return values
Listof services. The return type will be Array of Com::Vmware::Appliance::Techpreview::Services::ServiceInfo
Exceptions
Com::Vmware::Vapi::Std::Errors::ErrorGeneric error
Code:
click to view
public method Com::Vmware::Appliance::Techpreview::Services::new ( )

Constructor to initialize the object

Parameters
api_provider- protocol connection to use with stubs created by this factory
StubConfig- Stub's additional configuration
Return values
Blessedobject
Code:
click to view
public method Com::Vmware::Appliance::Techpreview::Services::restart ( )

start or restart a service

Parameters
name[REQUIRED] Name of the service to start or restart. . The value must be String.
timeout[REQUIRED] Timeout in seconds. Zero (0) means no timeout. . The value must be Long.
Exceptions
Com::Vmware::Vapi::Std::Errors::ErrorGeneric error
Code:
click to view
public method Com::Vmware::Appliance::Techpreview::Services::stop ( )

Stop a service

Parameters
name[REQUIRED] Name of service. . The value must be String.
timeout[REQUIRED] Timeout in seconds. Zero (0) means no timeout. . The value must be Long.
Exceptions
Com::Vmware::Vapi::Std::Errors::ErrorGeneric error
Code:
click to view

The documentation for this class was generated from the following file: