Udostępnij za pośrednictwem


ProvisioningServiceClient.GetEnrollmentGroupAttestationAsync Method

Definition

Retrieve the enrollmentGroup attestation information.

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

Parameters

enrollmentGroupId
String

the string that identifies the enrollmentGroup. It cannot be null or empty.

cancellationToken
CancellationToken

The cancellation token.

Returns

The AttestationMechanism associated with the provided group Id.

Remarks

If the provided group id does not match up with any enrollment group, this method will throw ProvisioningServiceClientException.

Applies to