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
我想做什么:- 我想报告 status/Health 以及为 1 个基于 ARM 门户的 Azure 站点中的所有服务器复制的数据百分比恢复库。我指的是通过 Azure 灾难恢复相关恢复服务的受保护项目(而不是备份项目)。我想通过 PowerShell 或使用任何 REST API 以编程方式执行此操作。
问题:- 我找不到任何可以提供此数据的 API。你知道有什么方法可以获取这些数据吗?
我已经检查过的内容:-我已经检查过这里的 PowerShell cmdlet,但没有发现任何有用的东西:AzureRM.RecoveryServices Module. I have also checked the REST APIs available via the Explorer Tool at https://resources.azure.com/.
任何指示都会对此有所帮助。
嗯,有一个 REST API,请参考这些链接:
https://docs.microsoft.com/en-us/rest/api/recoveryservices/protecteditemoperationstatuses
https://docs.microsoft.com/en-us/rest/api/recoveryservices/protecteditemoperationresults
我从 MS 支持那里得到了 API 的确切操作。同样的 link 在这里:
Get specific details about a protected item.
此 API 为您提供 Azure Site Recovery 中受复制保护的项目列表以及每个项目的运行状况。
我想做什么:- 我想报告 status/Health 以及为 1 个基于 ARM 门户的 Azure 站点中的所有服务器复制的数据百分比恢复库。我指的是通过 Azure 灾难恢复相关恢复服务的受保护项目(而不是备份项目)。我想通过 PowerShell 或使用任何 REST API 以编程方式执行此操作。
问题:- 我找不到任何可以提供此数据的 API。你知道有什么方法可以获取这些数据吗?
我已经检查过的内容:-我已经检查过这里的 PowerShell cmdlet,但没有发现任何有用的东西:AzureRM.RecoveryServices Module. I have also checked the REST APIs available via the Explorer Tool at https://resources.azure.com/.
任何指示都会对此有所帮助。
嗯,有一个 REST API,请参考这些链接:
https://docs.microsoft.com/en-us/rest/api/recoveryservices/protecteditemoperationstatuses
https://docs.microsoft.com/en-us/rest/api/recoveryservices/protecteditemoperationresults
我从 MS 支持那里得到了 API 的确切操作。同样的 link 在这里:
Get specific details about a protected item.
此 API 为您提供 Azure Site Recovery 中受复制保护的项目列表以及每个项目的运行状况。