コード例 #1
0
        private List <ProtectableContainerResource> GetUnRegisteredVmContainers(string vaultName = null,
                                                                                string vaultResourceGroupName = null)
        {
            ODataQuery <BMSContainerQueryObject> queryParams = null;

            queryParams = new ODataQuery <BMSContainerQueryObject>(
                q => q.BackupManagementType == ServiceClientModel.BackupManagementType.AzureWorkload);

            var listResponse = ServiceClientAdapter.ListUnregisteredContainers(
                queryParams,
                vaultName: vaultName,
                resourceGroupName: vaultResourceGroupName);
            List <ProtectableContainerResource> containerModels = listResponse.ToList();

            return(containerModels);
        }