/// <summary>
        /// Lists backup management servers registered with the recovery services vault
        /// </summary>
        /// <returns></returns>
        public List <Models.BackupEngineBase> ListBackupManagementServers()
        {
            string name = (string)this.ProviderData[ContainerParams.Name];

            ServiceClientModel.BackupEngineListQueryParams queryParams = new ServiceClientModel.BackupEngineListQueryParams();

            var listResponse = ServiceClientAdapter.ListBackupEngines(queryParams);

            List <BackupEngineBase> backupEngineModels = ConversionHelpers.GetBackupEngineModelList(listResponse);

            return(backupEngineModels);
        }
Beispiel #2
0
        /// <summary>
        /// Lists backup management servers registered with the recovery services vault
        /// </summary>
        /// <returns></returns>
        public List <BackupEngineBase> ListBackupManagementServers()
        {
            string name = (string)ProviderData[ContainerParams.Name];

            ODataQuery <ServiceClientModel.BMSBackupEnginesQueryObject> queryParams =
                new ODataQuery <ServiceClientModel.BMSBackupEnginesQueryObject>();

            var listResponse = ServiceClientAdapter.ListBackupEngines(queryParams);

            List <BackupEngineBase> backupEngineModels = ConversionHelpers.GetBackupEngineModelList(listResponse);

            return(backupEngineModels);
        }