VirtualMachineEncryption Interface

public interface VirtualMachineEncryption

Virtual machine encryption related operations.

Method Summary

Modifier and Type Method and Description
abstract DiskVolumeEncryptionMonitor disable(DiskVolumeType volumeType)

Disable encryption for virtual machine disks.

abstract Mono<DiskVolumeEncryptionMonitor> disableAsync(DiskVolumeType volumeType)

Disable encryption for virtual machine disks.

abstract DiskVolumeEncryptionMonitor enable(LinuxVMDiskEncryptionConfiguration encryptionSettings)

Enable encryption for Linux virtual machine disks.

abstract DiskVolumeEncryptionMonitor enable(WindowsVMDiskEncryptionConfiguration encryptionSettings)

Enable encryption for Windows virtual machine disks.

abstract DiskVolumeEncryptionMonitor enable(String keyVaultId)

Enable encryption for virtual machine disks.

abstract DiskVolumeEncryptionMonitor enable(String keyVaultId, String aadClientId, String aadSecret)

Enable encryption for virtual machine disks.

abstract Mono<DiskVolumeEncryptionMonitor> enableAsync(LinuxVMDiskEncryptionConfiguration encryptionSettings)

Enable encryption for Linux virtual machine disks.

abstract Mono<DiskVolumeEncryptionMonitor> enableAsync(WindowsVMDiskEncryptionConfiguration encryptionSettings)

Enable encryption for Windows virtual machine disks.

abstract Mono<DiskVolumeEncryptionMonitor> enableAsync(String keyVaultId)

Enable encryption for virtual machine disks.

abstract Mono<DiskVolumeEncryptionMonitor> enableAsync(String keyVaultId, String aadClientId, String aadSecret)

Enable encryption for virtual machine disks.

abstract DiskVolumeEncryptionMonitor getMonitor()
abstract Mono<DiskVolumeEncryptionMonitor> getMonitorAsync()

Method Details

disable

public abstract DiskVolumeEncryptionMonitor disable(DiskVolumeType volumeType)

Disable encryption for virtual machine disks.

Parameters:

volumeType - volume type to disable encryption

Returns:

current volume encryption status

disableAsync

public abstract Mono 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 abstract 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 abstract DiskVolumeEncryptionMonitor enable(WindowsVMDiskEncryptionConfiguration encryptionSettings)

Enable encryption for Windows virtual machine disks.

Parameters:

encryptionSettings - encryption settings for windows virtual machine

Returns:

current volume encryption status

enable

public abstract DiskVolumeEncryptionMonitor enable(String keyVaultId)

Enable encryption for virtual machine disks. NoAAD encryption extension will be used to enable encryption.

Parameters:

keyVaultId - resource ID of the key vault to store the disk encryption key

Returns:

current volume decryption status

enable

public abstract 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

enableAsync

public abstract Mono 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 abstract Mono 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

enableAsync

public abstract Mono enableAsync(String keyVaultId)

Enable encryption for virtual machine disks. NoAAD encryption extension will be used to enable encryption.

Parameters:

keyVaultId - resource ID of the key vault to store the disk encryption key

Returns:

a representation of the deferred computation of this call, returning the current volume encryption status

enableAsync

public abstract Mono enableAsync(String keyVaultId, String aadClientId, String aadSecret)

Enable encryption for virtual machine disks. Legacy encryption extension will be used to enable encryption.

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

getMonitor

public abstract DiskVolumeEncryptionMonitor getMonitor()

Returns:

current volume decryption status

getMonitorAsync

public abstract Mono getMonitorAsync()

Returns:

observable that emits current volume encryption/decryption status

Applies to