次の方法で共有


DeviceProvisioningServicesCertificateResource.GenerateVerificationCodeAsync メソッド

定義

オーバーロード

GenerateVerificationCodeAsync(String, String, Byte[], Nullable<Boolean>, Nullable<DeviceProvisioningServicesCertificatePurpose>, Nullable<DateTimeOffset>, Nullable<DateTimeOffset>, Nullable<Boolean>, String, CancellationToken)

所有証明の確認コードを生成します。

  • 要求パス/サブスクリプション/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}/certificates/{certificateName}/generateVerificationCode
  • 操作IdDpsCertificate_GenerateVerificationCode
GenerateVerificationCodeAsync(DeviceProvisioningServicesCertificateResourceGenerateVerificationCodeOptions, CancellationToken)

所有証明の確認コードを生成します。

  • 要求パス/サブスクリプション/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}/certificates/{certificateName}/generateVerificationCode
  • 操作IdDpsCertificate_GenerateVerificationCode

GenerateVerificationCodeAsync(String, String, Byte[], Nullable<Boolean>, Nullable<DeviceProvisioningServicesCertificatePurpose>, Nullable<DateTimeOffset>, Nullable<DateTimeOffset>, Nullable<Boolean>, String, CancellationToken)

所有証明の確認コードを生成します。

  • 要求パス/サブスクリプション/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}/certificates/{certificateName}/generateVerificationCode
  • 操作IdDpsCertificate_GenerateVerificationCode
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.DeviceProvisioningServices.Models.CertificateVerificationCodeResult>> GenerateVerificationCodeAsync (string ifMatch, string certificateCommonName = default, byte[] certificateRawBytes = default, bool? certificateIsVerified = default, Azure.ResourceManager.DeviceProvisioningServices.Models.DeviceProvisioningServicesCertificatePurpose? certificatePurpose = default, DateTimeOffset? certificateCreatedOn = default, DateTimeOffset? certificateLastUpdatedOn = default, bool? certificateHasPrivateKey = default, string certificateNonce = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GenerateVerificationCodeAsync : string * string * byte[] * Nullable<bool> * Nullable<Azure.ResourceManager.DeviceProvisioningServices.Models.DeviceProvisioningServicesCertificatePurpose> * Nullable<DateTimeOffset> * Nullable<DateTimeOffset> * Nullable<bool> * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.DeviceProvisioningServices.Models.CertificateVerificationCodeResult>>
override this.GenerateVerificationCodeAsync : string * string * byte[] * Nullable<bool> * Nullable<Azure.ResourceManager.DeviceProvisioningServices.Models.DeviceProvisioningServicesCertificatePurpose> * Nullable<DateTimeOffset> * Nullable<DateTimeOffset> * Nullable<bool> * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.DeviceProvisioningServices.Models.CertificateVerificationCodeResult>>
Public Overridable Function GenerateVerificationCodeAsync (ifMatch As String, Optional certificateCommonName As String = Nothing, Optional certificateRawBytes As Byte() = Nothing, Optional certificateIsVerified As Nullable(Of Boolean) = Nothing, Optional certificatePurpose As Nullable(Of DeviceProvisioningServicesCertificatePurpose) = Nothing, Optional certificateCreatedOn As Nullable(Of DateTimeOffset) = Nothing, Optional certificateLastUpdatedOn As Nullable(Of DateTimeOffset) = Nothing, Optional certificateHasPrivateKey As Nullable(Of Boolean) = Nothing, Optional certificateNonce As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of CertificateVerificationCodeResult))

パラメーター

ifMatch
String

証明書の ETag。 これは既存の証明書を更新するために必要であり、まったく新しい証明書の作成時には無視されます。

certificateCommonName
String

証明書の共通名。

certificateRawBytes
Byte[]

証明書の生データ。

certificateIsVerified
Nullable<Boolean>

秘密キーの所有者によって証明書が検証されているかどうかを示します。

certificatePurpose
Nullable<DeviceProvisioningServicesCertificatePurpose>

証明書の目的に関する説明。

certificateCreatedOn
Nullable<DateTimeOffset>

証明書の作成時間。

certificateLastUpdatedOn
Nullable<DateTimeOffset>

証明書の最終更新時刻。

certificateHasPrivateKey
Nullable<Boolean>

証明書に秘密キーが含まれているかどうかを示します。

certificateNonce
String

所有証明を示すために生成された乱数。

cancellationToken
CancellationToken

使用する取り消しトークン。

戻り値

例外

ifMatch が null です。

適用対象

GenerateVerificationCodeAsync(DeviceProvisioningServicesCertificateResourceGenerateVerificationCodeOptions, CancellationToken)

所有証明の確認コードを生成します。

  • 要求パス/サブスクリプション/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}/certificates/{certificateName}/generateVerificationCode
  • 操作IdDpsCertificate_GenerateVerificationCode
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.DeviceProvisioningServices.Models.CertificateVerificationCodeResult>> GenerateVerificationCodeAsync (Azure.ResourceManager.DeviceProvisioningServices.Models.DeviceProvisioningServicesCertificateResourceGenerateVerificationCodeOptions options, System.Threading.CancellationToken cancellationToken = default);
abstract member GenerateVerificationCodeAsync : Azure.ResourceManager.DeviceProvisioningServices.Models.DeviceProvisioningServicesCertificateResourceGenerateVerificationCodeOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.DeviceProvisioningServices.Models.CertificateVerificationCodeResult>>
override this.GenerateVerificationCodeAsync : Azure.ResourceManager.DeviceProvisioningServices.Models.DeviceProvisioningServicesCertificateResourceGenerateVerificationCodeOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.DeviceProvisioningServices.Models.CertificateVerificationCodeResult>>
Public Overridable Function GenerateVerificationCodeAsync (options As DeviceProvisioningServicesCertificateResourceGenerateVerificationCodeOptions, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of CertificateVerificationCodeResult))

パラメーター

options
DeviceProvisioningServicesCertificateResourceGenerateVerificationCodeOptions

LRO 修飾子と要求コンテキスト パラメーターを除く、このメソッドのすべてのパラメーターを含むプロパティ バッグ。

cancellationToken
CancellationToken

使用する取り消しトークン。

戻り値

例外

options が null です。

適用対象