Share via


IotHubCertificateDescriptionResource.VerifyAsync Method

Definition

Verifies the certificate's private key possession by providing the leaf cert issued by the verifying pre uploaded certificate.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}/certificates/{certificateName}/verify
  • Operation Id: Certificates_Verify
  • Default Api Version: 2023-06-30
  • Resource: IotHubCertificateDescriptionResource
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.IotHub.IotHubCertificateDescriptionResource>> VerifyAsync (string ifMatch, Azure.ResourceManager.IotHub.Models.IotHubCertificateVerificationContent content, System.Threading.CancellationToken cancellationToken = default);
abstract member VerifyAsync : string * Azure.ResourceManager.IotHub.Models.IotHubCertificateVerificationContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.IotHub.IotHubCertificateDescriptionResource>>
override this.VerifyAsync : string * Azure.ResourceManager.IotHub.Models.IotHubCertificateVerificationContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.IotHub.IotHubCertificateDescriptionResource>>
Public Overridable Function VerifyAsync (ifMatch As String, content As IotHubCertificateVerificationContent, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of IotHubCertificateDescriptionResource))

Parameters

ifMatch
String

ETag of the Certificate.

content
IotHubCertificateVerificationContent

The name of the certificate.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

ifMatch or content is null.

Applies to