public List<ProtectionContainerResourceInner> list(String vaultName, String resourceGroupName, String filter) {
        return listWithServiceResponseAsync(vaultName, resourceGroupName, filter).toBlocking().single().body();
    }
public List < ProtectionContainerResourceInner > list ( String vaultName , String resourceGroupName , String filter ) { return listWithServiceResponseAsync ( vaultName , resourceGroupName , filter ) . toBlocking ( ) . single ( ) . body ( ) ; }
Lists the containers registered to the Recovery Services vault.

@param vaultName The name of the Recovery Services vault.
@param resourceGroupName The name of the resource group associated with the Recovery Services vault.
@param filter The following equation is used to sort or filter the containers registered to the vault. providerType eq {AzureIaasVM, MAB, DPM, AzureBackupServer, AzureSql} and status eq {Unknown, NotRegistered, Registered, Registering} and friendlyName eq {containername} and backupManagementType eq {AzureIaasVM, MAB, DPM, AzureBackupServer, AzureSql}.
@throws IllegalArgumentException thrown if parameters fail the validation
@throws CloudException thrown if the request is rejected by server
@throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
@return the List&lt;ProtectionContainerResourceInner&gt; object if successful.