你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
VirtualMachineEncryption Interface
public interface VirtualMachineEncryption
Virtual machine encryption related operations.
Method Summary
Method Details
disable
public DiskVolumeEncryptionMonitor disable(DiskVolumeType volumeType)
Disable encryption for virtual machine disks.
Parameters:
volumeType
- volume type to disable encryption
Returns:
current volume encryption status
disableAsync
public Observable disableAsync(DiskVolumeType volumeType)
Disable encryption for virtual machine disks.
Parameters:
volumeType
- volume type to disable encryption
Returns:
a representation of the deferred computation of this call, returning the current volume decryption status
enable
public DiskVolumeEncryptionMonitor enable(LinuxVMDiskEncryptionConfiguration encryptionSettings)
Enable encryption for Linux virtual machine disks.
Parameters:
encryptionSettings
- encryption settings for windows virtual machine
Returns:
current volume encryption status
enable
public DiskVolumeEncryptionMonitor enable(String keyVaultId, String aadClientId, String aadSecret)
Enable encryption for virtual machine disks.
Parameters:
keyVaultId
- resource ID of the key vault to store the disk encryption key
aadClientId
- client ID of an AAD application which has permission to the key vault
aadSecret
- client secret corresponding to the aadClientId
Returns:
current volume decryption status
enable
public DiskVolumeEncryptionMonitor enable(WindowsVMDiskEncryptionConfiguration encryptionSettings)
Enable encryption for Windows virtual machine disks.
Parameters:
encryptionSettings
- encryption settings for windows virtual machine
Returns:
current volume encryption status
enableAsync
public Observable enableAsync(LinuxVMDiskEncryptionConfiguration encryptionSettings)
Enable encryption for Linux virtual machine disks.
Parameters:
encryptionSettings
- encryption settings for windows virtual machine
Returns:
a representation of the deferred computation of this call, returning the current volume encryption status
enableAsync
public Observable enableAsync(String keyVaultId, String aadClientId, String aadSecret)
Enable encryption for virtual machine disks.
Parameters:
keyVaultId
- resource ID of the key vault to store the disk encryption key
aadClientId
- client ID of an AAD application which has permission to the key vault
aadSecret
- client secret corresponding to the aadClientId
Returns:
a representation of the deferred computation of this call, returning the current volume encryption status
enableAsync
public Observable enableAsync(WindowsVMDiskEncryptionConfiguration encryptionSettings)
Enable encryption for Windows virtual machine disks.
Parameters:
encryptionSettings
- encryption settings for windows virtual machine
Returns:
a representation of the deferred computation of this call, returning the current volume encryption status
getMonitor
public DiskVolumeEncryptionMonitor getMonitor()
Returns:
current volume decryption status
getMonitorAsync
public Observable getMonitorAsync()
Returns:
observable that emits current volume encryption/decryption status
Applies to