你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

RecoveryServicesExtensions.GetRecoveryServiceCapabilitiesAsync 方法

定义

用于获取 Microsoft.RecoveryServices RP 提供的功能的详细信息的 API

  • 请求路径/subscriptions/{subscriptionId}/providers/Microsoft.RecoveryServices/locations/{location}/capabilities
  • 操作IdRecoveryServices_Capabilities
public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.RecoveryServices.Models.CapabilitiesResult>> GetRecoveryServiceCapabilitiesAsync (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.Core.AzureLocation location, Azure.ResourceManager.RecoveryServices.Models.ResourceCapabilities input, System.Threading.CancellationToken cancellationToken = default);
static member GetRecoveryServiceCapabilitiesAsync : Azure.ResourceManager.Resources.SubscriptionResource * Azure.Core.AzureLocation * Azure.ResourceManager.RecoveryServices.Models.ResourceCapabilities * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.RecoveryServices.Models.CapabilitiesResult>>
<Extension()>
Public Function GetRecoveryServiceCapabilitiesAsync (subscriptionResource As SubscriptionResource, location As AzureLocation, input As ResourceCapabilities, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of CapabilitiesResult))

参数

subscriptionResource
SubscriptionResource

方法 SubscriptionResource 将对其执行的实例。

location
AzureLocation

资源的位置。

input
ResourceCapabilities

包含有关用于获取功能的资源类型和属性的信息。

cancellationToken
CancellationToken

要使用的取消标记。

返回

例外

input 为 null。

适用于