Bases: vmware.vapi.bindings.stub.VapiInterface
Consolecli class provides methods Get/Set enabled state of CLI.
Parameters: | config (vmware.vapi.bindings.stub.StubConfiguration) – Configuration to be used for creating the stub. |
---|
Get enabled state of the console-based controlled CLI (TTY1).
Return type: | bool |
---|---|
Returns: | Console-based controlled CLI is enabled. |
Raise: | com.vmware.vapi.std.errors_client.Error Generic error |
Set enabled state of the console-based controlled CLI (TTY1).
Parameters: | enabled (bool) – Console-based controlled CLI is enabled. |
---|---|
Raise: | com.vmware.vapi.std.errors_client.Error Generic error |
Bases: vmware.vapi.bindings.stub.VapiInterface
Dcui class provides methods Get/Set enabled state of DCUI.
Parameters: | config (vmware.vapi.bindings.stub.StubConfiguration) – Configuration to be used for creating the stub. |
---|
Get enabled state of Direct Console User Interface (DCUI TTY2).
Return type: | bool |
---|---|
Returns: | DCUI is enabled. |
Raise: | com.vmware.vapi.std.errors_client.Error Generic error |
Set enabled state of Direct Console User Interface (DCUI TTY2).
Parameters: | enabled (bool) – DCUI is enabled. |
---|---|
Raise: | com.vmware.vapi.std.errors_client.Error Generic error |
Bases: vmware.vapi.bindings.stub.VapiInterface
Shell class provides methods Get/Set enabled state of BASH.
Parameters: | config (vmware.vapi.bindings.stub.StubConfiguration) – Configuration to be used for creating the stub. |
---|
Bases: vmware.vapi.bindings.struct.VapiStruct
Shell.ShellConfig class Structure that defines shell configuration.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Get enabled state of BASH, that is, access to BASH from within the controlled CLI.
Return type: | Shell.ShellConfig |
---|---|
Returns: | Current shell configuration. |
Raise: | com.vmware.vapi.std.errors_client.Error Generic error |
Set enabled state of BASH, that is, access to BASH from within the controlled CLI.
Parameters: | config (Shell.ShellConfig) – Shell configuration |
---|---|
Raise: | com.vmware.vapi.std.errors_client.Error Generic error |
Bases: vmware.vapi.bindings.stub.VapiInterface
Ssh class provides methods Get/Set enabled state of SSH-based controlled CLI.
Parameters: | config (vmware.vapi.bindings.stub.StubConfiguration) – Configuration to be used for creating the stub. |
---|
Get enabled state of the SSH-based controlled CLI.
Return type: | bool |
---|---|
Returns: | SSH-based controlled CLI is enabled. |
Raise: | com.vmware.vapi.std.errors_client.Error Generic error |
Set enabled state of the SSH-based controlled CLI.
Parameters: | enabled (bool) – SSH-based controlled CLI is enabled. |
---|---|
Raise: | com.vmware.vapi.std.errors_client.Error Generic error |
Bases: vmware.vapi.bindings.stub.VapiInterface
Applmgmt class provides methods Get health status of applmgmt services.
Parameters: | config (vmware.vapi.bindings.stub.StubConfiguration) – Configuration to be used for creating the stub. |
---|
Get health status of applmgmt services.
Return type: | str |
---|---|
Returns: | health status. |
Raise: | com.vmware.vapi.std.errors_client.Error Generic error |
Bases: vmware.vapi.bindings.stub.VapiInterface
Databasestorage class provides methods Get database storage health.
Parameters: | config (vmware.vapi.bindings.stub.StubConfiguration) – Configuration to be used for creating the stub. |
---|
Bases: vmware.vapi.bindings.enum.Enum
Databasestorage.HealthLevel class Defines health levels
Note
This class represents an enumerated type in the interface language definition. The class contains class attributes which represent the values in the current version of the enumerated type. Newer versions of the enumerated type may contain new values. To use new values of the enumerated type in communication with a server that supports the newer version of the API, you instantiate this class. See enumerated type description page.
Parameters: | string (str) – String value for the HealthLevel instance. |
---|
No health data is available for this service.
Service is healthy.
The service health is degraded. The service might have serious problems
The service is unavaiable and is not functioning properly or will stop functioning soon.
The service is healthy state, but experiencing some levels of problems.
Get database storage health.
Return type: | Databasestorage.HealthLevel |
---|---|
Returns: | Database storage health. |
Raise: | com.vmware.vapi.std.errors_client.Error Generic error |
Bases: vmware.vapi.bindings.stub.VapiInterface
Load class provides methods Get load health.
Parameters: | config (vmware.vapi.bindings.stub.StubConfiguration) – Configuration to be used for creating the stub. |
---|
Bases: vmware.vapi.bindings.enum.Enum
Load.HealthLevel class Defines health levels
Note
This class represents an enumerated type in the interface language definition. The class contains class attributes which represent the values in the current version of the enumerated type. Newer versions of the enumerated type may contain new values. To use new values of the enumerated type in communication with a server that supports the newer version of the API, you instantiate this class. See enumerated type description page.
Parameters: | string (str) – String value for the HealthLevel instance. |
---|
No health data is available for this service.
Service is healthy.
The service health is degraded. The service might have serious problems
The service is unavaiable and is not functioning properly or will stop functioning soon.
The service is healthy state, but experiencing some levels of problems.
Get load health.
Return type: | Load.HealthLevel |
---|---|
Returns: | Load health. |
Raise: | com.vmware.vapi.std.errors_client.Error Generic error |
Bases: vmware.vapi.bindings.stub.VapiInterface
Mem class provides methods Get memory health.
Parameters: | config (vmware.vapi.bindings.stub.StubConfiguration) – Configuration to be used for creating the stub. |
---|
Bases: vmware.vapi.bindings.enum.Enum
Mem.HealthLevel class Defines health levels
Note
This class represents an enumerated type in the interface language definition. The class contains class attributes which represent the values in the current version of the enumerated type. Newer versions of the enumerated type may contain new values. To use new values of the enumerated type in communication with a server that supports the newer version of the API, you instantiate this class. See enumerated type description page.
Parameters: | string (str) – String value for the HealthLevel instance. |
---|
No health data is available for this service.
Service is healthy.
The service health is degraded. The service might have serious problems
The service is unavaiable and is not functioning properly or will stop functioning soon.
The service is healthy state, but experiencing some levels of problems.
Get memory health.
Return type: | Mem.HealthLevel |
---|---|
Returns: | Memory health. |
Raise: | com.vmware.vapi.std.errors_client.Error Generic error |
Bases: vmware.vapi.bindings.stub.VapiInterface
Softwarepackages class provides methods Get information on available software updates available in remote VUM repository.
Parameters: | config (vmware.vapi.bindings.stub.StubConfiguration) – Configuration to be used for creating the stub. |
---|
Bases: vmware.vapi.bindings.enum.Enum
Softwarepackages.HealthLevel class Defines health levels
Note
This class represents an enumerated type in the interface language definition. The class contains class attributes which represent the values in the current version of the enumerated type. Newer versions of the enumerated type may contain new values. To use new values of the enumerated type in communication with a server that supports the newer version of the API, you instantiate this class. See enumerated type description page.
Parameters: | string (str) – String value for the HealthLevel instance. |
---|
No health data is available for this service.
Service is healthy.
The service health is degraded. The service might have serious problems
The service is unavaiable and is not functioning properly or will stop functioning soon.
The service is healthy state, but experiencing some levels of problems.
Get information on available software updates available in remote VUM repository. red indicates that security updates are available. orange indicates that non security updates are available. green indicates that there are no updates available. gray indicates that there was an error retreiving information on software updates.
Return type: | Softwarepackages.HealthLevel |
---|---|
Returns: | software updates available. |
Raise: | com.vmware.vapi.std.errors_client.Error Generic error |
Bases: vmware.vapi.bindings.stub.VapiInterface
Storage class provides methods Get storage health.
Parameters: | config (vmware.vapi.bindings.stub.StubConfiguration) – Configuration to be used for creating the stub. |
---|
Bases: vmware.vapi.bindings.enum.Enum
Storage.HealthLevel class Defines health levels
Note
This class represents an enumerated type in the interface language definition. The class contains class attributes which represent the values in the current version of the enumerated type. Newer versions of the enumerated type may contain new values. To use new values of the enumerated type in communication with a server that supports the newer version of the API, you instantiate this class. See enumerated type description page.
Parameters: | string (str) – String value for the HealthLevel instance. |
---|
No health data is available for this service.
Service is healthy.
The service health is degraded. The service might have serious problems
The service is unavaiable and is not functioning properly or will stop functioning soon.
The service is healthy state, but experiencing some levels of problems.
Get storage health.
Return type: | Storage.HealthLevel |
---|---|
Returns: | Storage health. |
Raise: | com.vmware.vapi.std.errors_client.Error Generic error |
Bases: vmware.vapi.bindings.stub.VapiInterface
Swap class provides methods Get swap health.
Parameters: | config (vmware.vapi.bindings.stub.StubConfiguration) – Configuration to be used for creating the stub. |
---|
Bases: vmware.vapi.bindings.enum.Enum
Swap.HealthLevel class Defines health levels
Note
This class represents an enumerated type in the interface language definition. The class contains class attributes which represent the values in the current version of the enumerated type. Newer versions of the enumerated type may contain new values. To use new values of the enumerated type in communication with a server that supports the newer version of the API, you instantiate this class. See enumerated type description page.
Parameters: | string (str) – String value for the HealthLevel instance. |
---|
No health data is available for this service.
Service is healthy.
The service health is degraded. The service might have serious problems
The service is unavaiable and is not functioning properly or will stop functioning soon.
The service is healthy state, but experiencing some levels of problems.
Get swap health.
Return type: | Swap.HealthLevel |
---|---|
Returns: | Swap health. |
Raise: | com.vmware.vapi.std.errors_client.Error Generic error |
Bases: vmware.vapi.bindings.stub.VapiInterface
System class provides methods Get overall health of system.
Parameters: | config (vmware.vapi.bindings.stub.StubConfiguration) – Configuration to be used for creating the stub. |
---|
Bases: vmware.vapi.bindings.enum.Enum
System.HealthLevel class Defines health levels
Note
This class represents an enumerated type in the interface language definition. The class contains class attributes which represent the values in the current version of the enumerated type. Newer versions of the enumerated type may contain new values. To use new values of the enumerated type in communication with a server that supports the newer version of the API, you instantiate this class. See enumerated type description page.
Parameters: | string (str) – String value for the HealthLevel instance. |
---|
No health data is available for this service.
Service is healthy.
The service health is degraded. The service might have serious problems
The service is unavaiable and is not functioning properly or will stop functioning soon.
The service is healthy state, but experiencing some levels of problems.
Get overall health of system.
Return type: | System.HealthLevel |
---|---|
Returns: | System health. |
Raise: | com.vmware.vapi.std.errors_client.Error Generic error |
Get last check timestamp of the health of the system.
Return type: | datetime.datetime |
---|---|
Returns: | System health last check timestamp. |
Raise: | com.vmware.vapi.std.errors_client.Error Generic error |
Bases: vmware.vapi.bindings.stub.VapiInterface
Interfaces class provides methods Provides information about network interface.
Parameters: | config (vmware.vapi.bindings.stub.StubConfiguration) – Configuration to be used for creating the stub. |
---|
Bases: vmware.vapi.bindings.struct.VapiStruct
Interfaces.InterfaceInfo class Structure that defines properties and status of a network interface.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: vmware.vapi.bindings.enum.Enum
Interfaces.InterfaceStatus class Defines interface status
Note
This class represents an enumerated type in the interface language definition. The class contains class attributes which represent the values in the current version of the enumerated type. Newer versions of the enumerated type may contain new values. To use new values of the enumerated type in communication with a server that supports the newer version of the API, you instantiate this class. See enumerated type description page.
Parameters: | string (str) – String value for the InterfaceStatus instance. |
---|
The interface is down.
The interface is up.
Get information about a particular network interface.
Parameters: | interface_name (str) – Network interface, for example, “nic0”. The parameter must be an identifier for the resource type: com.vmware.appliance.networking.interfaces. |
---|---|
Return type: | Interfaces.InterfaceInfo |
Returns: | Network interface information. |
Raise: | com.vmware.vapi.std.errors_client.Error Generic error |
Get list of available network interfaces, including those that are not yet configured.
Return type: | list of Interfaces.InterfaceInfo |
---|---|
Returns: | List of InterfaceInfo structures. |
Raise: | com.vmware.vapi.std.errors_client.Error Generic error |
Bases: vmware.vapi.bindings.stub.VapiInterface
Backup class provides methods Performs backup restore operations
Parameters: | config (vmware.vapi.bindings.stub.StubConfiguration) – Configuration to be used for creating the stub. |
---|
Bases: vmware.vapi.bindings.struct.VapiStruct
Backup.BackupRequest class Structure representing requested backup piece
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: vmware.vapi.bindings.struct.VapiStruct
Backup.LocalizableMessage class Structure representing message
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: vmware.vapi.bindings.enum.Enum
Backup.LocationType class Defines type of all locations for backup/restore
Note
This class represents an enumerated type in the interface language definition. The class contains class attributes which represent the values in the current version of the enumerated type. Newer versions of the enumerated type may contain new values. To use new values of the enumerated type in communication with a server that supports the newer version of the API, you instantiate this class. See enumerated type description page.
Parameters: | string (str) – String value for the LocationType instance. |
---|
Destination is FTP server
Destination is FTPS server
Destination is HTTP server
Destination is HTTPS server
Destination is SSH server
Bases: vmware.vapi.bindings.struct.VapiStruct
Backup.ReturnResult class Structure representing precheck result
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: vmware.vapi.bindings.enum.Enum
Backup.ReturnStatus class Defines the state of precheck
Note
This class represents an enumerated type in the interface language definition. The class contains class attributes which represent the values in the current version of the enumerated type. Newer versions of the enumerated type may contain new values. To use new values of the enumerated type in communication with a server that supports the newer version of the API, you instantiate this class. See enumerated type description page.
Parameters: | string (str) – String value for the ReturnStatus instance. |
---|
Check failed
Check passed
Passed with warnings
Check for backup errors without starting backup.
Parameters: | piece (Backup.BackupRequest) – BackupRequest Structure |
---|---|
Return type: | Backup.ReturnResult |
Returns: | ReturnResult Structure |
Raise: | com.vmware.vapi.std.errors_client.FeatureInUse A backup or restore is already in progress |
Raise: | com.vmware.vapi.std.errors_client.Error Generic error |
Bases: vmware.vapi.bindings.stub.VapiInterface
Restore class provides methods Performs restore operations
Parameters: | config (vmware.vapi.bindings.stub.StubConfiguration) – Configuration to be used for creating the stub. |
---|
Bases: vmware.vapi.bindings.struct.VapiStruct
Restore.LocalizableMessage class Structure representing message
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: vmware.vapi.bindings.enum.Enum
Restore.LocationType class Defines type of all locations for backup/restore
Note
This class represents an enumerated type in the interface language definition. The class contains class attributes which represent the values in the current version of the enumerated type. Newer versions of the enumerated type may contain new values. To use new values of the enumerated type in communication with a server that supports the newer version of the API, you instantiate this class. See enumerated type description page.
Parameters: | string (str) – String value for the LocationType instance. |
---|
Destination is FTP server
Destination is FTPS server
Destination is HTTP server
Destination is HTTPS server
Destination is SSH server
Bases: vmware.vapi.bindings.struct.VapiStruct
Restore.Metadata class Structure representing metadata
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: vmware.vapi.bindings.struct.VapiStruct
Restore.RestoreRequest class Structure representing requested restore piece
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Get metadata before restore
Parameters: | piece (Restore.RestoreRequest) – RestoreRequest Structure |
---|---|
Return type: | Restore.Metadata |
Returns: | Metadata Structure |
Raise: | com.vmware.vapi.std.errors_client.Error Generic error |
Bases: vmware.vapi.bindings.stub.VapiInterface
Storage class provides methods Appliance storage configuration
Parameters: | config (vmware.vapi.bindings.stub.StubConfiguration) – Configuration to be used for creating the stub. |
---|
Bases: vmware.vapi.bindings.struct.VapiStruct
Storage.StorageMapping class FIXME: no docstring
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Get disk to partition mapping
Return type: | list of Storage.StorageMapping |
---|---|
Returns: | list of mapping items |
Raise: | com.vmware.vapi.std.errors_client.Error Generic error |
Resize all partitions to 100 percent of disk size
Raise: | com.vmware.vapi.std.errors_client.Error Generic error |
---|
Bases: vmware.vapi.bindings.stub.VapiInterface
Time class provides methods Gets system time.
Parameters: | config (vmware.vapi.bindings.stub.StubConfiguration) – Configuration to be used for creating the stub. |
---|
Bases: vmware.vapi.bindings.struct.VapiStruct
Time.SystemTimeStruct class Structure representing the system time.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Get system time.
Return type: | Time.SystemTimeStruct |
---|---|
Returns: | System time |
Raise: | com.vmware.vapi.std.errors_client.Error Generic error |
Bases: vmware.vapi.bindings.stub.VapiInterface
Uptime class provides methods Get the system uptime.
Parameters: | config (vmware.vapi.bindings.stub.StubConfiguration) – Configuration to be used for creating the stub. |
---|
Get the system uptime.
Return type: | float |
---|---|
Returns: | system uptime |
Raise: | com.vmware.vapi.std.errors_client.Error Generic error |
Bases: vmware.vapi.bindings.stub.VapiInterface
Version class provides methods Get the appliance version.
Parameters: | config (vmware.vapi.bindings.stub.StubConfiguration) – Configuration to be used for creating the stub. |
---|
Bases: vmware.vapi.bindings.struct.VapiStruct
Version.VersionStruct class Structure representing appliance version information.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Get the version.
Return type: | Version.VersionStruct |
---|---|
Returns: | version information about the appliance |
Raise: | com.vmware.vapi.std.errors_client.Error Generic error |
Bases: vmware.vapi.bindings.stub.VapiInterface
Ntp class provides methods Gets NTP configuration status and tests connection to ntp servers.
Parameters: | config (vmware.vapi.bindings.stub.StubConfiguration) – Configuration to be used for creating the stub. |
---|
Bases: vmware.vapi.bindings.struct.VapiStruct
Ntp.Message class Test result and message
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: vmware.vapi.bindings.enum.Enum
Ntp.MessageStatus class Individual test result
Note
This class represents an enumerated type in the interface language definition. The class contains class attributes which represent the values in the current version of the enumerated type. Newer versions of the enumerated type may contain new values. To use new values of the enumerated type in communication with a server that supports the newer version of the API, you instantiate this class. See enumerated type description page.
Parameters: | string (str) – String value for the MessageStatus instance. |
---|
message indicates the test failed.
message indicates that the test was successful.
Bases: vmware.vapi.bindings.struct.VapiStruct
Ntp.NTPConfig class Structure defining the NTP configuration.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: vmware.vapi.bindings.enum.Enum
Ntp.NTPStatus class Defines NTP status
Note
This class represents an enumerated type in the interface language definition. The class contains class attributes which represent the values in the current version of the enumerated type. Newer versions of the enumerated type may contain new values. To use new values of the enumerated type in communication with a server that supports the newer version of the API, you instantiate this class. See enumerated type description page.
Parameters: | string (str) – String value for the NTPStatus instance. |
---|
NTP daemon is not running.
Cannot retrieve NTP daemon status.
NTP daemon is running.
Bases: vmware.vapi.bindings.enum.Enum
Ntp.TestStatus class Health indicator
Note
This class represents an enumerated type in the interface language definition. The class contains class attributes which represent the values in the current version of the enumerated type. Newer versions of the enumerated type may contain new values. To use new values of the enumerated type in communication with a server that supports the newer version of the API, you instantiate this class. See enumerated type description page.
Parameters: | string (str) – String value for the TestStatus instance. |
---|
All tests were successful for given data
In case data has more than one test, this indicates not all tests were successful
All tests failed for given data
Bases: vmware.vapi.bindings.struct.VapiStruct
Ntp.TestStatusInfo class Overall test result
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Get the NTP configuration status. If you run the ‘timesync.get’ command, you can retrieve the current time synchronization method (NTP- or VMware Tools-based). The ‘ntp’ command always returns the NTP server information, even when the time synchronization mode is not set to NTP. If the time synchronization mode is not NTP-based, the NTP server status is displayed as down.
Return type: | Ntp.NTPConfig |
---|---|
Returns: | NTP config |
Raise: | com.vmware.vapi.std.errors_client.Error Generic error |
Test the connection to a list of ntp servers.
Parameters: | servers (list of str) – List of host names or IP addresses of NTP servers. |
---|---|
Return type: | Ntp.TestStatusInfo |
Returns: | NTP connection status |
Raise: | com.vmware.vapi.std.errors_client.Error Generic error |
Bases: vmware.vapi.bindings.stub.VapiInterface
Services class provides methods Manages services.
Parameters: | config (vmware.vapi.bindings.stub.StubConfiguration) – Configuration to be used for creating the stub. |
---|
Bases: vmware.vapi.bindings.struct.VapiStruct
Services.ServiceInfo class Structure that describes a service and the operations you can perform on a service.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: vmware.vapi.bindings.enum.Enum
Services.ServiceOps class Defines service operations
Note
This class represents an enumerated type in the interface language definition. The class contains class attributes which represent the values in the current version of the enumerated type. Newer versions of the enumerated type may contain new values. To use new values of the enumerated type in communication with a server that supports the newer version of the API, you instantiate this class. See enumerated type description page.
Parameters: | string (str) – String value for the ServiceOps instance. |
---|
The service accepts arbitrary commands and arguments.
The service can be started or restarted.
The service status can be generated.
The service can be stopped.
Manage a service with arbitrary command and arguments.
Parameters: |
|
---|---|
Raise: | com.vmware.vapi.std.errors_client.Error Generic error |
Get a list of all known services.
Return type: | list of Services.ServiceInfo |
---|---|
Returns: | List of services. |
Raise: | com.vmware.vapi.std.errors_client.Error Generic error |
start or restart a service
Parameters: |
|
---|---|
Raise: | com.vmware.vapi.std.errors_client.Error Generic error |
Stop a service
Parameters: |
|
---|---|
Raise: | com.vmware.vapi.std.errors_client.Error Generic error |
Bases: vmware.vapi.bindings.stub.VapiInterface
Shutdown class provides methods Performs reboot/shutdow operations on appliance.
Parameters: | config (vmware.vapi.bindings.stub.StubConfiguration) – Configuration to be used for creating the stub. |
---|
Bases: vmware.vapi.bindings.struct.VapiStruct
Shutdown.ShutdownConfig class Structure that defines shutdown configuration.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: vmware.vapi.bindings.struct.VapiStruct
Shutdown.ShutdownGetConfig class Structure that defines shutdown configuration returned by Shutdown.get operation
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Cancel pending shutdown action.
Raise: | com.vmware.vapi.std.errors_client.Error Generic error |
---|
Get details about the pending shutdown action.
Return type: | Shutdown.ShutdownGetConfig |
---|---|
Returns: | Configuration of pending shutdown action. |
Raise: | com.vmware.vapi.std.errors_client.Error Generic error |
Power off the appliance.
Parameters: | config (Shutdown.ShutdownConfig) – Configuration of poweroff action |
---|---|
Raise: | com.vmware.vapi.std.errors_client.Error Generic error |
Reboot the appliance.
Parameters: | config (Shutdown.ShutdownConfig) – Configuration of reboot action |
---|---|
Raise: | com.vmware.vapi.std.errors_client.Error Generic error |
Bases: vmware.vapi.bindings.stub.VapiInterface
Timesync class provides methods Performs time synchronization configuration.
Parameters: | config (vmware.vapi.bindings.stub.StubConfiguration) – Configuration to be used for creating the stub. |
---|
Bases: vmware.vapi.bindings.struct.VapiStruct
Timesync.TimeSyncConfig class Structure defining time synchronization configuration.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: | mode (Timesync.TimeSyncMode) – Time synchronization mode. Mode can have one of the TimeSyncMode enumeration values. |
---|
Bases: vmware.vapi.bindings.enum.Enum
Timesync.TimeSyncMode class Defines different timsync modes
Note
This class represents an enumerated type in the interface language definition. The class contains class attributes which represent the values in the current version of the enumerated type. Newer versions of the enumerated type may contain new values. To use new values of the enumerated type in communication with a server that supports the newer version of the API, you instantiate this class. See enumerated type description page.
Parameters: | string (str) – String value for the TimeSyncMode instance. |
---|
Time synchronization is disabled.
NTP-based time synchronization.
VMware Tool-based time synchronization.
Get time synchronization configuration.
Return type: | Timesync.TimeSyncConfig |
---|---|
Returns: | Time synchronization configuration. |
Raise: | com.vmware.vapi.std.errors_client.Error Generic error |
Set time synchronization configuration.
Parameters: | config (Timesync.TimeSyncConfig) – Time synchronization configuration. |
---|---|
Raise: | com.vmware.vapi.std.errors_client.Error Generic error |
The com.vmware.appliance.vmon_client module provides classes to manage a set of services that are part of the vCenter Server.
Bases: vmware.vapi.bindings.stub.VapiInterface
The Service class provides methods to manage a single/set of services that are managed by vMon.
Parameters: | config (vmware.vapi.bindings.stub.StubConfiguration) – Configuration to be used for creating the stub. |
---|
Bases: vmware.vapi.bindings.enum.Enum
The Service.Health class defines the possible values for health of a service.
Note
This class represents an enumerated type in the interface language definition. The class contains class attributes which represent the values in the current version of the enumerated type. Newer versions of the enumerated type may contain new values. To use new values of the enumerated type in communication with a server that supports the newer version of the API, you instantiate this class. See enumerated type description page.
Parameters: | string (str) – String value for the Health instance. |
---|
Service is in degraded state, it is not functional.
Service is in a healthy state and is fully functional.
Service is healthy with warnings.
Bases: vmware.vapi.bindings.struct.VapiStruct
The Service.Info class contains information about a service.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: vmware.vapi.bindings.enum.Enum
The Service.StartupType class defines valid Startup Type for services managed by vMon.
Note
This class represents an enumerated type in the interface language definition. The class contains class attributes which represent the values in the current version of the enumerated type. Newer versions of the enumerated type may contain new values. To use new values of the enumerated type in communication with a server that supports the newer version of the API, you instantiate this class. See enumerated type description page.
Parameters: | string (str) – String value for the StartupType instance. |
---|
Service Startup type is Automatic, thus during starting all services or issuing explicit start on the service will start it.
Service Startup type is Disabled, thus it will not start unless the startup type changes to manual or automatic.
Service Startup type is Manual, thus issuing an explicit start on the service will start it.
Bases: vmware.vapi.bindings.enum.Enum
The Service.State class defines valid Run State for services.
Note
This class represents an enumerated type in the interface language definition. The class contains class attributes which represent the values in the current version of the enumerated type. Newer versions of the enumerated type may contain new values. To use new values of the enumerated type in communication with a server that supports the newer version of the API, you instantiate this class. See enumerated type description page.
Parameters: | string (str) – String value for the State instance. |
---|
Service Run State is Started, it is fully functional
Service Run State is Starting, it is still not functional
Service Run State is Stopped
Service Run State is Stopping, it is not functional
Bases: vmware.vapi.bindings.struct.VapiStruct
The Service.UpdateSpec class describes the changes to be made to the configuration of the service.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: | startup_type (Service.StartupType or None) – Startup Type If unspecified, leaves value unchanged. |
---|
Returns the state of a service.
Parameters: | service (str) – identifier of the service whose state is being queried. The parameter must be an identifier for the resource type: com.vmware.appliance.vmon.Service. |
---|---|
Return type: | Service.Info |
Returns: | Service Info structure. |
Raise: | com.vmware.vapi.std.errors_client.NotFound if the service associated with service does not exist. |
Raise: | com.vmware.vapi.std.errors_client.Error if any other error occurs during the execution of the operation. |
Lists details of services managed by vMon.
Return type: | dict of str and Service.Info |
---|---|
Returns: | Map of service identifiers to service Info structures. The key in the return value dict will be an identifier for the resource type: com.vmware.appliance.vmon.Service. |
Raise: | com.vmware.vapi.std.errors_client.Error if any error occurs during the execution of the operation. |
Restarts a service
Parameters: | service (str) – identifier of the service to restart The parameter must be an identifier for the resource type: com.vmware.appliance.vmon.Service. |
---|---|
Raise: | com.vmware.vapi.std.errors_client.NotFound if the service associated with service does not exist. |
Raise: | com.vmware.vapi.std.errors_client.TimedOut if any timeout occurs during the execution of the restart operation. |
Raise: | com.vmware.vapi.std.errors_client.NotAllowedInCurrentState if the operation is denied in the current state of the service. If a stop or start operation is in progress, issuing a restart operation will lead to this error. |
Raise: | com.vmware.vapi.std.errors_client.NotAllowedInCurrentState if a restart operation is issued on a service which has startup type Service.StartupType.DISABLED |
Raise: | com.vmware.vapi.std.errors_client.Error if any other error occurs during the execution of the operation. |
Starts a service
Parameters: | service (str) – identifier of the service to start The parameter must be an identifier for the resource type: com.vmware.appliance.vmon.Service. |
---|---|
Raise: | com.vmware.vapi.std.errors_client.NotFound if the service associated with service does not exist. |
Raise: | com.vmware.vapi.std.errors_client.NotAllowedInCurrentState if the operation is denied in the current state of the service. If a stop or restart operation is in progress, the start operation will not be allowed. |
Raise: | com.vmware.vapi.std.errors_client.NotAllowedInCurrentState if start operation is issued on a service which has startup type Service.StartupType.DISABLED. |
Raise: | com.vmware.vapi.std.errors_client.TimedOut if any timeout occurs during the execution of the start operation. Timeout occurs when the service takes longer than StartTimeout to start. |
Raise: | com.vmware.vapi.std.errors_client.Error if any other error occurs during the execution of the operation. |
Stops a service
Parameters: | service (str) – identifier of the service to stop The parameter must be an identifier for the resource type: com.vmware.appliance.vmon.Service. |
---|---|
Raise: | com.vmware.vapi.std.errors_client.NotFound if the service associated with service does not exist. |
Raise: | com.vmware.vapi.std.errors_client.Error if any other error occurs during the execution of the operation. |
Raise: | com.vmware.vapi.std.errors_client.NotAllowedInCurrentState if the operation is denied in the current state of the service. If a stop operation is in progress, issuing another stop operation will lead to this error. |
Updates the properties of a service.
Parameters: |
|
---|---|
Raise: | com.vmware.vapi.std.errors_client.NotFound if the service associated with service does not exist. |
Raise: | com.vmware.vapi.std.errors_client.Error if any other error occurs during the execution of the operation. |
Raise: | com.vmware.vapi.std.errors_client.NotAllowedInCurrentState if the operation is denied in the current state of the service. If a start, stop or restart operation is in progress, update operation will fail with this error. |
Raise: | com.vmware.vapi.std.errors_client.NotAllowedInCurrentState if a request to set the Service.UpdateSpec.startup_type attribute of spec to Service.StartupType.DISABLED comes in for a service that is not in Service.State.STOPPED state. |