ICertificateOperations.BeginCreateWithHttpMessagesAsync(String, String, String, CertificateCreateOrUpdateParameters, String, String, Dictionary<String,List<String>>, CancellationToken) ICertificateOperations.BeginCreateWithHttpMessagesAsync(String, String, String, CertificateCreateOrUpdateParameters, String, String, Dictionary<String,List<String>>, CancellationToken) Method

Definition

Creates a new certificate inside the specified account.

public System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.Management.Batch.Models.Certificate,Microsoft.Azure.Management.Batch.Models.CertificateCreateHeaders>> BeginCreateWithHttpMessagesAsync (string resourceGroupName, string accountName, string certificateName, Microsoft.Azure.Management.Batch.Models.CertificateCreateOrUpdateParameters parameters, string ifMatch = null, string ifNoneMatch = null, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = null);
abstract member BeginCreateWithHttpMessagesAsync : string * string * string * Microsoft.Azure.Management.Batch.Models.CertificateCreateOrUpdateParameters * string * string * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.Management.Batch.Models.Certificate, Microsoft.Azure.Management.Batch.Models.CertificateCreateHeaders>>
Parameters
resourceGroupName
String String

The name of the resource group that contains the Batch account.

accountName
String String

The name of the Batch account.

certificateName
String 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.

parameters
CertificateCreateOrUpdateParameters CertificateCreateOrUpdateParameters

Additional parameters for certificate creation.

ifMatch
String String

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 String

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

customHeaders
Dictionary<String,List<String>>

The headers that will be added to request.

cancellationToken
CancellationToken CancellationToken

The cancellation token.

Returns
Task<Microsoft.Rest.Azure.AzureOperationResponse<Certificate,CertificateCreateHeaders>>
Exceptions
Microsoft.Rest.Azure.CloudException Microsoft.Rest.Azure.CloudException

Thrown when the operation returned an invalid status code

Microsoft.Rest.SerializationException Microsoft.Rest.SerializationException

Thrown when unable to deserialize the response

Microsoft.Rest.ValidationException Microsoft.Rest.ValidationException

Thrown when a required parameter is null

Applies to