Bases: vmware.vapi.bindings.stub.VapiInterface
User class provides methods Perform operations on local user account.
Parameters: | config (vmware.vapi.bindings.stub.StubConfiguration) – Configuration to be used for creating the stub. |
---|
Bases: vmware.vapi.bindings.struct.VapiStruct
User.NewUserConfig class Structure that defines a new user configuration.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: vmware.vapi.bindings.enum.Enum
User.UserAccountStatus class Defines status of user accounts
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 UserAccountStatus instance. |
---|
The user account is disabled.
The user account is enabled.
Bases: vmware.vapi.bindings.struct.VapiStruct
User.UserConfig class Structure that defines a new user configuration for CLI.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: vmware.vapi.bindings.struct.VapiStruct
User.UserConfigGet class Structure defines a user configuration for user.get API.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: vmware.vapi.bindings.enum.Enum
User.UserPasswordStatus class Defines state of user password
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 UserPasswordStatus instance. |
---|
The password has expired.
No password has been set
The password is still valid.
Bases: vmware.vapi.bindings.enum.Enum
User.UserRole class Defines user roles for appliance
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 UserRole instance. |
---|
Able to configure the appliance.
Able to read the appliance configuration.
Able to configure the appliance, manage local accounts and use the BASH shell
Create a new local user account.
Parameters: | config (User.NewUserConfig) – User configuration. |
---|---|
Raise: | com.vmware.vapi.std.errors_client.Error Generic error |
Delete a local user account.
Parameters: | username (str) – User login name. |
---|---|
Raise: | com.vmware.vapi.std.errors_client.Error Generic error |
Get the local user account information.
Parameters: | username (str) – User login name. |
---|---|
Return type: | User.UserConfigGet |
Returns: | local user account information |
Raise: | com.vmware.vapi.std.errors_client.Error Generic error |
List of local accounts
Return type: | list of User.UserConfigGet |
---|---|
Returns: | User configuration. |
Raise: | com.vmware.vapi.std.errors_client.Error Generic error |
Update local user account properties role, full name, enabled status and password
Parameters: | config (User.UserConfig) – User configuration. |
---|---|
Raise: | com.vmware.vapi.std.errors_client.Error Generic error |
Bases: vmware.vapi.bindings.stub.VapiInterface
Snmp class provides methods SNMP agent operations.
Parameters: | config (vmware.vapi.bindings.stub.StubConfiguration) – Configuration to be used for creating the stub. |
---|
Bases: vmware.vapi.bindings.enum.Enum
Snmp.SNMPAuthProto class Defines SNMP authentication protocols
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 SNMPAuthProto instance. |
---|
MD5
SHA1
NONE
Bases: vmware.vapi.bindings.struct.VapiStruct
Snmp.SNMPConfig class Structure that defines the SNMP configuration, provided as input to set(), and never the result of get(). See SNMPConfigReadOnly. This structure is used to configure SNMP v1, v2c, and v3.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: vmware.vapi.bindings.struct.VapiStruct
Snmp.SNMPConfigReadOnly class Structure that defines the SNMP configuration, the result of get(), and never provided as input to set(). This structure differs from SNMPConfig because it contains localized keys (as defined in http://tools.ietf.org/html/rfc3826#section-1.2), instead of raw secret strings. This structure can be used to configure SNMP v1, v2c, and v3. Keep this structure in sync with vmw_snmp.py:_default_config(). Note that if a field if left empty, it is considered unset and will be ignored. Existing array elements below can be unset by sending an element with the string ‘reset’.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: vmware.vapi.bindings.struct.VapiStruct
Snmp.SNMPHashConfig class Structure to provide up to two secrets to combine with the SNMPv3 engine ID and authentication or privacy protocol to form a localized hash. auth_hash is always required, priv_hash can be empty. By default arguments are paths on the local filesystem, raw_secret takes path to be the actual raw secret. First implementation was in ESXi: esxcli system snmp hash –help
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: vmware.vapi.bindings.struct.VapiStruct
Snmp.SNMPHashResults class Structure to provide operators diagnostics test results.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: vmware.vapi.bindings.struct.VapiStruct
Snmp.SNMPLimits class Structure that provides various limits of the SNMP agent.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: vmware.vapi.bindings.enum.Enum
Snmp.SNMPPrivProto class Defines SNMP privacy protocols
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 SNMPPrivProto instance. |
---|
AES128
NONE
Bases: vmware.vapi.bindings.struct.VapiStruct
Snmp.SNMPRemoteUser class Structure that defines a user at particular remote SNMPv3 entity needed when using informs. auth_key and priv_key contained localized keys as defined in http://tools.ietf.org/html/rfc3826#section-1.2.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: vmware.vapi.bindings.enum.Enum
Snmp.SNMPSecLevel class Defines SNMP decurity 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 SNMPSecLevel instance. |
---|
auth
none
priv
Bases: vmware.vapi.bindings.struct.VapiStruct
Snmp.SNMPStats class Structure to provide operators diagnostics on snmp agent itself.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: vmware.vapi.bindings.struct.VapiStruct
Snmp.SNMPTestResults class Structure to provide operators diagnostics test results.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: vmware.vapi.bindings.struct.VapiStruct
Snmp.SNMPUser class Structure that defines information associated with an SNMP user. authKey and privKey are localized keys defined in http://tools.ietf.org/html/rfc3826#section-1.2.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: vmware.vapi.bindings.struct.VapiStruct
Snmp.SNMPv1TrapTarget class Structure that defines an SNMP v1/v2c trap target.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: vmware.vapi.bindings.enum.Enum
Snmp.SNMPv3Notfication class Defines SNMP v3 notification types
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 SNMPv3Notfication instance. |
---|
inform
trap
Bases: vmware.vapi.bindings.struct.VapiStruct
Snmp.SNMPv3Target class Structure that defines an SNMP v3 inform or trap target.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Stop an enabled SNMP agent.
Raise: | com.vmware.vapi.std.errors_client.Error Generic error |
---|
Start a disabled SNMP agent.
Raise: | com.vmware.vapi.std.errors_client.Error Generic error |
---|
Return an SNMP agent configuration.
Return type: | Snmp.SNMPConfigReadOnly |
---|---|
Returns: | SNMP config structure |
Raise: | com.vmware.vapi.std.errors_client.Error Generic error |
Generate localized keys for secure SNMPv3 communications.
Parameters: | config (Snmp.SNMPHashConfig) – SNMP hash configuration. |
---|---|
Return type: | Snmp.SNMPHashResults |
Returns: | SNMP hash result |
Raise: | com.vmware.vapi.std.errors_client.Error Generic error |
Get SNMP limits information.
Return type: | Snmp.SNMPLimits |
---|---|
Returns: | SNMP limits structure |
Raise: | com.vmware.vapi.std.errors_client.Error Generic error |
Restore settings to factory defaults.
Raise: | com.vmware.vapi.std.errors_client.Error Generic error |
---|
Set SNMP configuration.
Parameters: | config (Snmp.SNMPConfig) – SNMP configuration. |
---|---|
Raise: | com.vmware.vapi.std.errors_client.Error Generic error |
Generate diagnostics report for snmp agent.
Return type: | Snmp.SNMPStats |
---|---|
Returns: | SNMP stats |
Raise: | com.vmware.vapi.std.errors_client.Error Generic error |
Send a warmStart notification to all configured traps and inform destinations (see RFC 3418).
Return type: | Snmp.SNMPTestResults |
---|---|
Returns: | SNMP test result |
Raise: | com.vmware.vapi.std.errors_client.Error Generic error |
Bases: vmware.vapi.bindings.stub.VapiInterface
Ipv4 class provides methods Performs IPV4 network configuration for interfaces.
Parameters: | config (vmware.vapi.bindings.stub.StubConfiguration) – Configuration to be used for creating the stub. |
---|
Bases: vmware.vapi.bindings.struct.VapiStruct
Ipv4.IPv4Config class Structure that defines the IPv4 configuration state of a network interface.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: vmware.vapi.bindings.struct.VapiStruct
Ipv4.IPv4ConfigReadOnly class Structure that defines the IPv4 configuration state of a network interface.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: vmware.vapi.bindings.enum.Enum
Ipv4.IPv4Mode class Defines different ipv4 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 IPv4Mode instance. |
---|
IPv4 address is automatically assigned by a DHCP server.
IPv4 address is static.
The IPv4 protocol is not configured.
Get IPv4 network configuration for interfaces.
Parameters: | interfaces (list of str) – Network interfaces to query, for example, “nic0”. |
---|---|
Return type: | list of Ipv4.IPv4ConfigReadOnly |
Returns: | IPv4 configuration for each queried interface. |
Raise: | com.vmware.vapi.std.errors_client.Error Generic error |
Get IPv4 network configuration for all configured interfaces.
Return type: | list of Ipv4.IPv4ConfigReadOnly |
---|---|
Returns: | IPv4 configuration for each interface. |
Raise: | com.vmware.vapi.std.errors_client.Error Generic error |
Renew IPv4 network configuration on interfaces. If the interface is configured to use DHCP for IP address assignment, the lease of the interface is renewed.
Parameters: | interfaces (list of str) – Interfaces to renew. |
---|---|
Raise: | com.vmware.vapi.std.errors_client.Error Generic error |
Set IPv4 network configuration.
Parameters: | config (list of Ipv4.IPv4Config) – List of IPv4 configurations. |
---|---|
Raise: | com.vmware.vapi.std.errors_client.Error Generic error |
Bases: vmware.vapi.bindings.stub.VapiInterface
Ipv6 class provides methods Performs IPV4 network configuration for interfaces.
Parameters: | config (vmware.vapi.bindings.stub.StubConfiguration) – Configuration to be used for creating the stub. |
---|
Bases: vmware.vapi.bindings.struct.VapiStruct
Ipv6.IPv6Address class Structure used to name an IPv6 address.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: vmware.vapi.bindings.enum.Enum
Ipv6.IPv6AddressOrigin class Defines IPV6 address origin values
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 IPv6AddressOrigin instance. |
---|
The IPv6 address is assigned by a DHCP server. See RFC 4293.
The IPv6 address is assigned by IPv6 Stateless Address Auto-configuration (SLAAC). See RFC 4293.
The IPv6 address was manually configured to a specified address, for, example, by user configuration. See RFC 4293.
The IPv6 address is assigned by a mechanism other than manual, DHCP, SLAAC, or random. See RFC 4293.
The IPv6 address is assigned randomly by the system. See RFC 4293.
Bases: vmware.vapi.bindings.struct.VapiStruct
Ipv6.IPv6AddressReadOnly class Structure that you can use to get information about an IPv6 address along with its origin and status.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: vmware.vapi.bindings.enum.Enum
Ipv6.IPv6AddressStatus class Defines IPV6 address status values
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 IPv6AddressStatus instance. |
---|
This is a valid but deprecated IPv6 address. Do not use this IPv6 address as a source address in new communications, although packets addressed to such an address are processed as expected. See RFC 4293.
This IPv6 address is not unique on the link. Do use this IPv6 address. See RFC 4293.
This IPv6 address is inaccessible because the interface to which this address is assigned is not operational. See RFC 4293.
This IPv6 address is not a valid address. It should not appear as the destination or source address of a packet. See RFC 4293.
This IPv6 address is available for use, subject to restrictions, while its uniqueness on a link is being verified. See RFC 4293.
This is a valid IPv6 address that can appear as the destination or source address of a packet. See RFC 4293.
This IPv6 address is in the process of being verified as unique. Do not use addresses in this state for general communication. You can use them to determine the uniqueness of the address. See RFC 4293.
The status of this address cannot be determined. See RFC 4293.
Bases: vmware.vapi.bindings.struct.VapiStruct
Ipv6.IPv6Config class Structure that you can use to configure IPv6 on a particular interface. Because IPv6 permits multiple addresses per interface, addresses can be assigned by DHCP, SLAAC, and can also be statically assigned.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: vmware.vapi.bindings.struct.VapiStruct
Ipv6.IPv6ConfigReadOnly class Structure that defines an existing IPv6 configuration on a particular interface. This structure is read only.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Get IPv6 network configuration for interfaces.
Parameters: | interfaces (list of str) – Network interfaces to query, for example, “nic0”. |
---|---|
Return type: | list of Ipv6.IPv6ConfigReadOnly |
Returns: | IPv6 configuration. |
Raise: | com.vmware.vapi.std.errors_client.Error Generic error |
Get IPv6 network configuration for all configured interfaces.
Return type: | list of Ipv6.IPv6ConfigReadOnly |
---|---|
Returns: | IPv6 configuration for each interface. |
Raise: | com.vmware.vapi.std.errors_client.Error Generic error |
Set IPv6 network configuration.
Parameters: | config (list of Ipv6.IPv6Config) – IPv6 configuration. |
---|---|
Raise: | com.vmware.vapi.std.errors_client.Error Generic error |
Bases: vmware.vapi.bindings.stub.VapiInterface
Proxy class provides methods Proxy configuration.
Parameters: | config (vmware.vapi.bindings.stub.StubConfiguration) – Configuration to be used for creating the stub. |
---|
Bases: vmware.vapi.bindings.struct.VapiStruct
Proxy.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
Proxy.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
Proxy.ProxyConfig class Structure that defines proxy configuration.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: vmware.vapi.bindings.struct.VapiStruct
Proxy.ProxyConfigMultiple class Structure representing multiple proxy configuration.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: vmware.vapi.bindings.struct.VapiStruct
Proxy.ProxyConfigTest class Structure that defines proxy configuration.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: vmware.vapi.bindings.enum.Enum
Proxy.ProxyProtocol class Defines different proxy protocols
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 ProxyProtocol instance. |
---|
proxy configuration for ftp.
proxy configuration for http.
proxy configuration for https.
Bases: vmware.vapi.bindings.enum.Enum
Proxy.ProxyStatus class Defines state of proxy
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 ProxyStatus instance. |
---|
proxy configuration is disabled
proxy configuration is enabled
Bases: vmware.vapi.bindings.enum.Enum
Proxy.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
Proxy.TestStatusInfo class Overall test result
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Delete a Proxy configuration for a specific protocol.
Parameters: | protocol (Proxy.ProxyProtocol) – Protocol to delete proxy of. |
---|---|
Raise: | com.vmware.vapi.std.errors_client.Error Generic error |
Get proxy configuration for all protocols.
Return type: | Proxy.ProxyConfigMultiple |
---|---|
Returns: | proxy configuration for all protocols. |
Raise: | com.vmware.vapi.std.errors_client.Error Generic error |
Set Proxy configuration. In order for this configuration to take effect a logout is required.
Parameters: | config (Proxy.ProxyConfigMultiple) – List of Proxy configurations to be set. |
---|---|
Raise: | com.vmware.vapi.std.errors_client.Error Generic error |
Test a Proxy configuration by testing the connection to the proxy server and test host.
Parameters: | config (Proxy.ProxyConfigTest) – Proxy configuration to test |
---|---|
Return type: | Proxy.TestStatusInfo |
Returns: | Status of proxy settings. |
Raise: | com.vmware.vapi.std.errors_client.Error Generic error |
Bases: vmware.vapi.bindings.stub.VapiInterface
Routes class provides methods Performs networking routes operations.
Parameters: | config (vmware.vapi.bindings.stub.StubConfiguration) – Configuration to be used for creating the stub. |
---|
Bases: vmware.vapi.bindings.struct.VapiStruct
Routes.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
Routes.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
Routes.Route class Structure that describes how routing is performed for a particular destination and prefix. A destination/prefix of 0.0.0.0/0 ( for IPv4) or ::/0 (for IPv6) refers to the default gateway.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: vmware.vapi.bindings.struct.VapiStruct
Routes.RouteReadOnly class Structure that describes how routing is performed for a particular destination and prefix. A destination/prefix of 0.0.0.0/0 ( for IPv4) or ::/0 (for IPv6) refers to the default gateway.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: vmware.vapi.bindings.enum.Enum
Routes.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
Routes.TestStatusInfo class Overall test result
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Set static routing rules. A destination of 0.0.0.0 and prefix 0 (for IPv4) or destination of :: and prefix 0 (for IPv6) refers to the default gateway.
Parameters: | route (Routes.Route) – Static routing rule. |
---|---|
Raise: | com.vmware.vapi.std.errors_client.Error Generic error |
Delete static routing rules.
Parameters: | route (Routes.Route) – Static routing rule. |
---|---|
Raise: | com.vmware.vapi.std.errors_client.Error Generic error |
Get main routing table. A destination of 0.0.0.0 and prefix 0 (for IPv4) or destination of :: and prefix 0 (for IPv6) refers to the default gateway.
Return type: | list of Routes.RouteReadOnly |
---|---|
Returns: | Routing table. |
Raise: | com.vmware.vapi.std.errors_client.Error Generic error |
Set static routing rules. A destination of 0.0.0.0 and prefix 0 (for IPv4) or destination of :: and prefix 0 (for IPv6) refers to the default gateway.
Parameters: | routes (list of Routes.Route) – Static routing rules. |
---|---|
Raise: | com.vmware.vapi.std.errors_client.Error Generic error |
Test connection to a list of gateways
Parameters: | gateways (list of str) – list of gateways. |
---|---|
Return type: | Routes.TestStatusInfo |
Returns: | connection status |
Raise: | com.vmware.vapi.std.errors_client.Error Generic error |
Bases: vmware.vapi.bindings.stub.VapiInterface
Server class provides methods Performs NTP configuration.
Parameters: | config (vmware.vapi.bindings.stub.StubConfiguration) – Configuration to be used for creating the stub. |
---|
Add NTP servers. This command adds NTP servers to the configuration. If the time synchronization is NTP-based, then NTP daemon is restarted to reload the new NTP servers. Otherwise, this command just adds servers to the NTP configuration.
Parameters: | servers (list of str) – List of host names or IP addresses of NTP servers. |
---|---|
Raise: | com.vmware.vapi.std.errors_client.Error Generic error |
Delete NTP servers. This command deletes NTP servers from the configuration. If the time synchronization mode is NTP-based, the NTP daemon is restarted to reload the new NTP configuration. Otherwise, this command just deletes servers from the NTP configuration.
Parameters: | servers (list of str) – List of host name or ip addresses of ntp servers. |
---|---|
Raise: | com.vmware.vapi.std.errors_client.Error Generic error |
Set NTP servers. This command deletes old NTP servers from the configuration and sets the input NTP servers in the configuration. If the time synchronization is NTP-based, the NTP daemon is restarted to reload the new NTP configuration. Otherwise, this command just replaces servers in the NTP configuration.
Parameters: | servers (list of str) – List of host names or ip addresses of ntp servers. |
---|---|
Raise: | com.vmware.vapi.std.errors_client.Error Generic error |
Bases: vmware.vapi.bindings.stub.VapiInterface
Status class provides methods Get status of a service.
Parameters: | config (vmware.vapi.bindings.stub.StubConfiguration) – Configuration to be used for creating the stub. |
---|
Bases: vmware.vapi.bindings.enum.Enum
Status.ServiceStatus class Defines service 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 ServiceStatus instance. |
---|
Service is not running.
Service is running.
Get status of a service.
Parameters: |
|
---|---|
Return type: | |
Returns: | Status of the service. |
Raise: | com.vmware.vapi.std.errors_client.Error Generic error |
Bases: vmware.vapi.bindings.stub.VapiInterface
Update class provides methods Performs update repository configuration.
Parameters: | config (vmware.vapi.bindings.stub.StubConfiguration) – Configuration to be used for creating the stub. |
---|
Bases: vmware.vapi.bindings.enum.Enum
Update.AutoUpdateNotification class Defines state for automatic update notification
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 AutoUpdateNotification instance. |
---|
Automatic update notification is disabled. Disable periodically query the configured url for updates.
Automatic update notification is enabled. Enable periodically query the configured url for updates.
Bases: vmware.vapi.bindings.enum.Enum
Update.UpdateDay class Defines days to query for updates
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 UpdateDay instance. |
---|
query for updates everyday
query for updates on Friday
query for updates on Monday
query for updates on Saturday
query for updates on Sunday
query for updates on Thursday
query for updates on Tuesday
query for updates on Wednesday
Bases: vmware.vapi.bindings.struct.VapiStruct
Update.UpdateStructGet class Structure to get url update repository.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Bases: vmware.vapi.bindings.struct.VapiStruct
Update.UpdateStructSet class Structure to set url update repository.
Tip
The arguments are used to initialize data attributes with the same names.
Parameters: |
|
---|
Get update repository configuration.
Return type: | Update.UpdateStructGet |
---|---|
Returns: | update related configuration |
Raise: | com.vmware.vapi.std.errors_client.Error Generic error |
Set update repository configuration.
Parameters: | config (Update.UpdateStructSet) – update related configuration |
---|---|
Raise: | com.vmware.vapi.std.errors_client.Error Generic error |