简体   繁体   English

PowerShell(或REST API)可在基于ARM的Azure Site Recovery Vault中获取所有受保护项目的状态

[英]PowerShell (or REST API) to get the status of all Protected Items in an ARM based Azure Site Recovery Vault

What I want to Do:- I want to report the status/Health along with percentages of the data replicated for all the servers in 1 ARM portal based Azure Site Recovery Vault. 我想做的事情:-我想报告状态/运行状况以及在1个基于ARM门户的Azure Site Recovery Vault中为所有服务器复制的数据百分比。 I am referring to the Protected Items via the Azure Disaster Recovery related Recovery Services (and NOT the Backup items). 我指的是通过与Azure灾难恢复相关的恢复服务(而不是备份项目)获得的受保护项目。 I want to do this programmatically via PowerShell or using any REST API. 我想通过PowerShell或使用任何REST API以编程方式执行此操作。

Problem:- I am not able to find any API which can provide this data. 问题:-我找不到任何可以提供此数据的API。 Are you aware of any way to fetch this data? 您知道如何获取此数据吗?

What I have already checked:- I have already checked the PowerShell cmdlets here and did not found anything useful: AzureRM.RecoveryServices Module . 我已经检查过的内容:-我已经在这里检查PowerShell cmdlet并没有发现任何有用的东西: AzureRM.RecoveryServices Module I have also checked the REST APIs available via the Explorer Tool at https://resources.azure.com/ . 我还检查了通过https://resources.azure.com/上的资源管理器工具提供的REST API。

Any pointers will be helpful for this. 任何指针都将对此有所帮助。

I got the API for the exact operation from MS support. 我从MS支持人员那里获得了用于确切操作的API。 The link to the same is here: 链接到这里:

Get specific details about a protected item . 获取有关受保护物品的特定详细信息

This API give you list of replication protected items in Azure Site Recovery along with Health of each item. 该API为您提供Azure Site Recovery中受复制保护的项目的列表以及每个项目的运行状况。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM