共用方式為


IDpsCertificateOperations.GetWithHttpMessagesAsync Method

Definition

Get the certificate from the provisioning service.

public System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.Management.DeviceProvisioningServices.Models.CertificateResponse>> GetWithHttpMessagesAsync (string certificateName, string resourceGroupName, string provisioningServiceName, string ifMatch = default, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetWithHttpMessagesAsync : string * string * string * string * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.Management.DeviceProvisioningServices.Models.CertificateResponse>>
Public Function GetWithHttpMessagesAsync (certificateName As String, resourceGroupName As String, provisioningServiceName As String, Optional ifMatch As String = Nothing, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of AzureOperationResponse(Of CertificateResponse))

Parameters

certificateName
String

Name of the certificate to retrieve.

resourceGroupName
String

Resource group identifier.

provisioningServiceName
String

Name of the provisioning service the certificate is associated with.

ifMatch
String

ETag of the certificate.

customHeaders
Dictionary<String,List<String>>

The headers that will be added to request.

cancellationToken
CancellationToken

The cancellation token.

Returns

Exceptions

Thrown when the operation returned an invalid status code

Thrown when unable to deserialize the response

Thrown when a required parameter is null

Applies to