# Managed Object - CryptoManagerHost(vim.encryption.CryptoManagerHost)

Extended by
  CryptoManagerHostKMS
Extends
  CryptoManager
See also
  CryptoKeyId, CryptoKeyPlain, CryptoManagerHostKeyStatus
Since
  vSphere API 6.7

## Managed Object Description

Properties

Name | Type | Description
--- | --- | ---
None
Properties inherited from CryptoManager
enabled

Methods

Methods defined in this Managed Object
ChangeKey_Task, CryptoManagerHostDisable, CryptoManagerHostEnable, CryptoManagerHostPrepare, GetCryptoKeyStatus
Methods inherited from CryptoManager
AddKey, AddKeys, ListKeys, RemoveKey, RemoveKeys

# ChangeKey_Task(changeKey)

Change the key used for core dump encryption Note: CryptoManagerHostEnable must be called first If successful, a "best effort" will be made to "in place" shallow recrypt any core dumps found in /var/core to use the new key.

Required Privileges
  Cryptographer.RegisterHost

Parameters

Name | Type | Description
--- | --- | ---
_this | ManagedObjectReference | A reference to the CryptoManagerHost used to make the method call.
newKey P | CryptoKeyPlain | The key that replaces the existing core dump encryption key Since vSphere API 6.7

P Required privilege: newKey

Return Value

Type | Description
--- | ---
pbm.Task |

Faults

Type | Description
--- | ---
InvalidState | Thrown if the host is not in vim.HostSystem.CryptoState#safe state
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

# CryptoManagerHostDisable(disable)

Disable encryption on host, if host was in crypto safe mode, put it in pendingIncapable state and host will be crypto incapable after a reboot Note: A reboot is expected from user after successfully invoking this API Note: Do not call this API if the host is in vSAN encrypted cluster

Required Privileges
  Cryptographer.RegisterHost
Since
  vSphere API 7.0

Parameters

Name | Type | Description
--- | --- | ---
_this | ManagedObjectReference | A reference to the CryptoManagerHost used to make the method call.

Return Value

Type | Description
--- | ---
None

Faults

Type | Description
--- | ---
InvalidState | Thrown if the host is already crypto disabled.
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:pbm="urn:pbm" name="CryptoManagerHostDisable" type="pbm:CryptoManagerHostDisableRequestType"/> <element xmlns="http://www.w3.org/2001/XMLSchema" xmlns:pbm="urn:pbm" name="CryptoManagerHostDisableResponse"> <complexType/> </element>

# CryptoManagerHostEnable(enable)

Begin core dump encryption by specifying the encryption key and put the host in vim.HostSystem.CryptoState#safe state Note: CryptoManagerHostPrepare must be called first

Required Privileges
  Cryptographer.RegisterHost

Parameters

Name | Type | Description
--- | --- | ---
_this | ManagedObjectReference | A reference to the CryptoManagerHost used to make the method call.
initialKey P | CryptoKeyPlain | The key to be used for core dump encryption Since vSphere API 6.7

P Required privilege: initialKey

Return Value

Type | Description
--- | ---
None

Faults

Type | Description
--- | ---
AlreadyExists | Thrown if the host is in vim.HostSystem.CryptoState#safe state and initialKey differs from the existing core dump encryption key
InvalidState | Thrown if the host is in vim.HostSystem.CryptoState#incapable state
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:pbm="urn:pbm" name="CryptoManagerHostEnable" type="pbm:CryptoManagerHostEnableRequestType"/> <element xmlns="http://www.w3.org/2001/XMLSchema" xmlns:pbm="urn:pbm" name="CryptoManagerHostEnableResponse"> <complexType/> </element>

# CryptoManagerHostPrepare(prepare)

Prime the host to receive sensitive information and put the host in vim.HostSystem.CryptoState#prepared state

Required Privileges
  Cryptographer.RegisterHost

Parameters

Name | Type | Description
--- | --- | ---
_this | ManagedObjectReference | A reference to the CryptoManagerHost used to make the method call.

Return Value

Type | Description
--- | ---
None

Faults

Type | Description
--- | ---
InvalidState | Thrown if the host is not in vim.HostSystem.CryptoState#incapable state
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:pbm="urn:pbm" name="CryptoManagerHostPrepare" type="pbm:CryptoManagerHostPrepareRequestType"/> <element xmlns="http://www.w3.org/2001/XMLSchema" xmlns:pbm="urn:pbm" name="CryptoManagerHostPrepareResponse"> <complexType/> </element>

# GetCryptoKeyStatus(getCryptoKeyStatus)

Get the key status on the host.

Required Privileges
  Cryptographer.ManageKeys
Since
  8.0.1.0

Parameters

Name | Type | Description
--- | --- | ---
_this | ManagedObjectReference | A reference to the CryptoManagerHost used to make the method call.
keys* P | CryptoKeyId[] | [in] Cryptographic keys to query status. Since 8.0.1.0

*Need not be set P Required privilege: keys

Return Value

Type | Description
--- | ---
CryptoManagerHostKeyStatus[] | The key status.

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:pbm="urn:pbm" name="GetCryptoKeyStatus" type="pbm:GetCryptoKeyStatusRequestType"/> <element xmlns="http://www.w3.org/2001/XMLSchema" xmlns:pbm="urn:pbm" name="GetCryptoKeyStatusResponse"> <complexType> <sequence> <element name="returnval" type="pbm:CryptoManagerHostKeyStatus" minOccurs="0" maxOccurs="unbounded"/> </sequence> </complexType> </element>