Udostępnij za pośrednictwem


ProvisioningServiceClient.GetIndividualEnrollmentAttestationAsync Method

Definition

Retrieve the attestation information for an individual enrollment.

public System.Threading.Tasks.Task<Microsoft.Azure.Devices.Provisioning.Service.AttestationMechanism> GetIndividualEnrollmentAttestationAsync (string registrationId, System.Threading.CancellationToken cancellationToken = default);
member this.GetIndividualEnrollmentAttestationAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Devices.Provisioning.Service.AttestationMechanism>
Public Function GetIndividualEnrollmentAttestationAsync (registrationId As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of AttestationMechanism)

Parameters

registrationId
String

The registration Id of the individual enrollment to retrieve the attestation information of. This may not be null or empty.

cancellationToken
CancellationToken

The cancellation token.

Returns

The AttestationMechanism of the individual enrollment associated with the provided registrationId.

Remarks

If the registrationId does not match any individual enrollment, this method will throw a ProvisioningServiceClientException.

Applies to