Share via


BatchAccountCertificateCollection.CreateOrUpdate Method

Definition

Warning: This operation is deprecated and will be removed after February, 2024. Please use the Azure KeyVault Extension instead.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/certificates/{certificateName}
  • Operation Id: Certificate_Create
  • Default Api Version: 2024-07-01
  • Resource: BatchAccountCertificateResource
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)

Parameters

waitUntil
WaitUntil

Completed if the method should wait to return until the long-running operation has completed on the service; Started if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.

certificateName
String

The identifier for the certificate. This must be made up of algorithm and thumbprint separated by a dash, and must match the certificate data in the request. For example SHA1-a3d1c5.

content
BatchAccountCertificateCreateOrUpdateContent

Additional parameters for certificate creation.

ifMatch
Nullable<ETag>

The entity state (ETag) version of the certificate to update. A value of "*" can be used to apply the operation only if the certificate already exists. If omitted, this operation will always be applied.

ifNoneMatch
String

Set to '*' to allow a new certificate to be created, but to prevent updating an existing certificate. Other values will be ignored.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

certificateName is an empty string, and was expected to be non-empty.

certificateName or content is null.

Applies to