BatchAccountCertificateCollection.CreateOrUpdate メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
警告: この操作は非推奨であり、2024 年 2 月以降に削除されます。 代わりに Azure KeyVault 拡張機能 を使用してください。
- 要求パス/サブスクリプション/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/certificates/{certificateName}
- 操作IdCertificate_Create
public virtual Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Batch.BatchAccountCertificateResource> CreateOrUpdate (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 CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.Batch.Models.BatchAccountCertificateCreateOrUpdateContent * Nullable<Azure.ETag> * string * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Batch.BatchAccountCertificateResource>
override this.CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.Batch.Models.BatchAccountCertificateCreateOrUpdateContent * Nullable<Azure.ETag> * string * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Batch.BatchAccountCertificateResource>
Public Overridable Function CreateOrUpdate (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 ArmOperation(Of BatchAccountCertificateResource)
パラメーター
- waitUntil
- WaitUntil
Completed メソッドがサービスで実行時間の長い操作が完了するまで戻るのを待機する必要がある場合。 Started 操作を開始した後に が返される場合は 。 実行時間の長い操作の詳細については、「 Azure.Core Long-Running 操作のサンプル」を参照してください。
- certificateName
- String
証明書の識別子。 これは、ダッシュで区切られたアルゴリズムと拇印で構成され、要求内の証明書データと一致する必要があります。 たとえば、SHA1-a3d1c5 です。
証明書を作成するための追加のパラメーター。
更新する証明書のエンティティ状態 (ETag) バージョン。 "*" の値は、証明書が既に存在する場合にのみ、操作を適用するために使用できます。 省略すると、この操作は常に適用されます。
- ifNoneMatch
- String
新しい証明書の作成を許可するが、既存の証明書を更新できないようにするには、'*' に設定します。 その他の値は無視されます。
- cancellationToken
- CancellationToken
使用する取り消しトークン。
戻り値
例外
certificateName は空の文字列であり、空でないと想定されていました。
certificateName または content が null です。