com.vmware.appliance.system package

Submodules

com.vmware.appliance.system.security_client module

class com.vmware.appliance.system.security_client.GlobalFips(config)

Bases: VapiInterface

The GlobalFips class provides methods to enable/disable appliance FIPS mode. This class was added in vSphere API 7.0.1.0.

Parameters:

config (vmware.vapi.bindings.stub.StubConfiguration) – Configuration to be used for creating the stub.

class Info(enabled=None)

Bases: VapiStruct

Tip

The arguments are used to initialize data attributes with the same names.

Parameters:

enabled (bool) – FIPS setting state. This attribute was added in vSphere API 7.0.1.0.

class UpdateSpec(enabled=None)

Bases: VapiStruct

Tip

The arguments are used to initialize data attributes with the same names.

Parameters:

enabled (bool or None) – FIPS setting state. This attribute was added in vSphere API 7.0.1.0. If None, the value is unchanged.

get()

Get current appliance FIPS settings. This method was added in vSphere API 7.0.1.0.

Return type:

GlobalFips.Info

Returns:

Current FIPS settings state.

Raise:

com.vmware.vapi.std.errors_client.Error Generic error

update(spec)

Enable/Disable Global FIPS mode for the appliance.

Caution: Changing the value of this setting will reboot the Appliance.. This method was added in vSphere API 7.0.1.0.

Parameters:

spec (GlobalFips.UpdateSpec) –

Raise:

com.vmware.vapi.std.errors_client.Error Generic error

class com.vmware.appliance.system.security_client.StubFactory(stub_config)

Bases: StubFactoryBase

Initialize StubFactoryBase

Parameters:

stub_config (vmware.vapi.bindings.stub.StubConfiguration) – Stub config instance

com.vmware.appliance.system.time_client module

class com.vmware.appliance.system.time_client.StubFactory(stub_config)

Bases: StubFactoryBase

Initialize StubFactoryBase

Parameters:

stub_config (vmware.vapi.bindings.stub.StubConfiguration) – Stub config instance

class com.vmware.appliance.system.time_client.Timezone(config)

Bases: VapiInterface

The Timezone class provides methods to get and set the appliance timezone. This class was added in vSphere API 6.7.

Parameters:

config (vmware.vapi.bindings.stub.StubConfiguration) – Configuration to be used for creating the stub.

get()

Get time zone. This method was added in vSphere API 6.7.

Return type:

str

Returns:

Time zone name.

Raise:

com.vmware.vapi.std.errors_client.Error if timezone cannot be read.

set(name)

Set time zone. This method was added in vSphere API 6.7.

Parameters:

name (str) – Time zone name.

Raise:

com.vmware.vapi.std.errors_client.InvalidArgument if passed arguments are invalid.

Raise:

com.vmware.vapi.std.errors_client.Error if any error occurs during the execution of the operation.