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

ICertificateOperations.GetWithHttpMessagesAsync 方法

定义

注意

This operation is deprecated. Please do not use it any longer.

获取有关指定证书的信息。

[System.Obsolete("This operation is deprecated. Please do not use it any longer.")]
public System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.Batch.Protocol.Models.Certificate,Microsoft.Azure.Batch.Protocol.Models.CertificateGetHeaders>> GetWithHttpMessagesAsync(string thumbprintAlgorithm, string thumbprint, Microsoft.Azure.Batch.Protocol.Models.CertificateGetOptions certificateGetOptions = default, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
[<System.Obsolete("This operation is deprecated. Please do not use it any longer.")>]
abstract member GetWithHttpMessagesAsync : string * string * Microsoft.Azure.Batch.Protocol.Models.CertificateGetOptions * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.Batch.Protocol.Models.Certificate, Microsoft.Azure.Batch.Protocol.Models.CertificateGetHeaders>>
Public Function GetWithHttpMessagesAsync (thumbprintAlgorithm As String, thumbprint As String, Optional certificateGetOptions As CertificateGetOptions = Nothing, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of AzureOperationResponse(Of Certificate, CertificateGetHeaders))

参数

thumbprintAlgorithm
String

用于派生指纹参数的算法。 这必须是 sha1。

thumbprint
String

要获取的证书的指纹。

certificateGetOptions
CertificateGetOptions

操作的其他参数

customHeaders
Dictionary<String,List<String>>

将添加到请求的标头。

cancellationToken
CancellationToken

取消标记。

返回

属性

例外

操作返回无效状态代码时引发

无法反序列化响应时引发

当所需的参数为 null 时引发

注解

警告:此操作已弃用,将在 2024 年 2 月之后删除。 请改用 [Azure KeyVault 扩展] (https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) 。

适用于