BatchAccountCertificateCollection.CreateOrUpdateAsync メソッド

定義

警告: この操作は非推奨であり、2024 年 2 月以降に削除されます。 代わりに Azure KeyVault 拡張機能 を使用してください。

  • 要求パス/サブスクリプション/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/certificates/{certificateName}
  • 操作IdCertificate_Create
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Batch.BatchAccountCertificateResource>> CreateOrUpdateAsync (Azure.WaitUntil waitUntil, string certificateName, Azure.ResourceManager.Batch.Models.BatchAccountCertificateCreateOrUpdateContent content, Azure.ETag? ifMatch = default, string ifNoneMatch = default, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.Batch.Models.BatchAccountCertificateCreateOrUpdateContent * Nullable<Azure.ETag> * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Batch.BatchAccountCertificateResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.Batch.Models.BatchAccountCertificateCreateOrUpdateContent * Nullable<Azure.ETag> * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Batch.BatchAccountCertificateResource>>
Public Overridable Function CreateOrUpdateAsync (waitUntil As WaitUntil, certificateName As String, content As BatchAccountCertificateCreateOrUpdateContent, Optional ifMatch As Nullable(Of ETag) = Nothing, Optional ifNoneMatch As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of BatchAccountCertificateResource))

パラメーター

waitUntil
WaitUntil

Completed メソッドが、サービスで実行時間の長い操作が完了するまで戻るまで待機する必要がある場合。 Started 操作を開始した後に が返される場合は 。 実行時間の長い操作の詳細については、「 Azure.Core Long-Running 操作のサンプル」を参照してください。

certificateName
String

証明書の識別子。 これは、ダッシュで区切られたアルゴリズムと拇印で構成され、要求の証明書データと一致する必要があります。 たとえば、SHA1-a3d1c5 です。

content
BatchAccountCertificateCreateOrUpdateContent

証明書を作成するための追加のパラメーター。

ifMatch
Nullable<ETag>

更新する証明書のエンティティ状態 (ETag) バージョン。 値 "*" は、証明書が既に存在する場合にのみ操作を適用するために使用できます。 省略すると、この操作は常に適用されます。

ifNoneMatch
String

新しい証明書を作成できるようにするが、既存の証明書を更新できないようにするには、'*' に設定します。 その他の値は無視されます。

cancellationToken
CancellationToken

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

戻り値

例外

certificateName は空の文字列であり、空でないと予想されていました。

certificateName または content が null です。

適用対象