IDpsCertificateOperations.CreateOrUpdateWithHttpMessagesAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Upload the certificate to the provisioning service.
public System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.Management.DeviceProvisioningServices.Models.CertificateResponse>> CreateOrUpdateWithHttpMessagesAsync (string resourceGroupName, string provisioningServiceName, string certificateName, string ifMatch = default, Microsoft.Azure.Management.DeviceProvisioningServices.Models.CertificateProperties properties = default, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateWithHttpMessagesAsync : string * string * string * string * Microsoft.Azure.Management.DeviceProvisioningServices.Models.CertificateProperties * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.Management.DeviceProvisioningServices.Models.CertificateResponse>>
Public Function CreateOrUpdateWithHttpMessagesAsync (resourceGroupName As String, provisioningServiceName As String, certificateName As String, Optional ifMatch As String = Nothing, Optional properties As CertificateProperties = Nothing, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of AzureOperationResponse(Of CertificateResponse))
Parameters
- resourceGroupName
- String
Resource group identifier.
- provisioningServiceName
- String
The name of the provisioning service.
- certificateName
- String
The name of the certificate create or update.
- ifMatch
- String
ETag of the certificate. This is required to update an existing certificate, and ignored while creating a brand new certificate.
- properties
- CertificateProperties
properties of a certificate
- customHeaders
- Dictionary<String,List<String>>
The headers that will be added to request.
- cancellationToken
- CancellationToken
The cancellation token.
Returns
Exceptions
Thrown when the operation returned an invalid status code
Thrown when unable to deserialize the response
Thrown when a required parameter is null
Remarks
Add new certificate or update an existing certificate.