# Data Object - CryptoKeyId(vim.encryption.CryptoKeyId)

Property of
  CryptoKeyPlain, CryptoKeyResult, CryptoSpecDeepRecrypt, CryptoSpecEncrypt, CryptoSpecRegister, CryptoSpecShallowRecrypt, EncryptionKeyRequired, HostRuntimeInfo, ToolsConfigInfo, VirtualDiskFlatVer2BackingInfo, VirtualDiskSeSparseBackingInfo, VirtualDiskSparseVer2BackingInfo, VirtualMachineConfigInfo, VmConfigFileEncryptionInfo, VmDiskFileEncryptionInfo
Parameter to
  ConfigureCryptoKey, RemoveKey, RemoveKeys
Returned by
  ListKeys
Extends
  DynamicData
See also
  KeyProviderId
Since
  vSphere API 6.5

## Data Object Description

Data Object representing a cryptographic key.

Properties

Name | Type | Description
--- | --- | ---
keyId | xsd:string | Unique key ID. When creating a key may be replaced with the ID generated by the KMS server. An empty string must be used when encrypting with a Trusted Key Provider, because the key is generated at the time of encryption.
providerId* | KeyProviderId | The provider holding the key data. May be ignored if the key is known to be stored in another provider.
Properties inherited from DynamicData
None

*Need not be set
Show WSDL type definition
<complexType xmlns="http://www.w3.org/2001/XMLSchema" xmlns:vsan="urn:vsan" name="CryptoKeyId"> <complexContent> <extension base="vsan:DynamicData"> <sequence> <element name="keyId" type="xsd:string"/> <element name="providerId" type="vsan:KeyProviderId" minOccurs="0"/> </sequence> </extension> </complexContent> </complexType>