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

SecurityCenterExtensions.GetSubscriptionSecurityApplicationAsync 方法

定义

按 applicationId 获取请求范围的特定应用程序

  • 请求路径/订阅/{subscriptionId}/providers/Microsoft.Security/applications/{applicationId}
  • 操作IdApplication_Get
public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.SecurityCenter.SubscriptionSecurityApplicationResource>> GetSubscriptionSecurityApplicationAsync (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, string applicationId, System.Threading.CancellationToken cancellationToken = default);
static member GetSubscriptionSecurityApplicationAsync : Azure.ResourceManager.Resources.SubscriptionResource * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.SecurityCenter.SubscriptionSecurityApplicationResource>>
<Extension()>
Public Function GetSubscriptionSecurityApplicationAsync (subscriptionResource As SubscriptionResource, applicationId As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of SubscriptionSecurityApplicationResource))

参数

subscriptionResource
SubscriptionResource

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

applicationId
String

安全应用程序密钥 - 标准应用程序的唯一密钥。

cancellationToken
CancellationToken

要使用的取消标记。

返回

例外

applicationId 是一个空字符串,预期为非空。

applicationId 为 null。

适用于