Share via


ICertificatesOperations.CreateOrUpdateWithHttpMessagesAsync Methode

Definition

Laden Sie das Zertifikat in den IoT Hub hoch.

public System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.Management.IotHub.Models.CertificateDescription>> CreateOrUpdateWithHttpMessagesAsync (string resourceGroupName, string resourceName, string certificateName, string ifMatch = default, Microsoft.Azure.Management.IotHub.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.IotHub.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.IotHub.Models.CertificateDescription>>
Public Function CreateOrUpdateWithHttpMessagesAsync (resourceGroupName As String, resourceName 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 CertificateDescription))

Parameter

resourceGroupName
String

Der Name der Ressourcengruppe, die den IoT Hub enthält.

resourceName
String

Der Name des IoT-Hubs.

certificateName
String

Der Name des Zertifikats

ifMatch
String

ETag des Zertifikats. Geben Sie nicht an, um ein brandneues Zertifikat zu erstellen. Erforderlich, um ein vorhandenes Zertifikat zu aktualisieren.

customHeaders
Dictionary<String,List<String>>

Die Header, die der Anforderung hinzugefügt werden.

cancellationToken
CancellationToken

Das Abbruchtoken.

Gibt zurück

Ausnahmen

Wird ausgelöst, wenn der Vorgang einen ungültigen status Code zurückgegeben hat.

Wird ausgelöst, wenn die Antwort nicht deserialisiert werden kann

Wird ausgelöst, wenn ein erforderlicher Parameter NULL ist

Hinweise

Fügt ein neues Zertifikat hinzu oder ersetzt vorhandene Zertifikate.

Gilt für: