Partager via


IotHubResourceOperationsExtensions.BeginCreateOrUpdate Méthode

Définition

Créez ou mettez à jour les métadonnées d’un hub IoT.

public static Microsoft.Azure.Management.IotHub.Models.IotHubDescription BeginCreateOrUpdate (this Microsoft.Azure.Management.IotHub.IIotHubResourceOperations operations, string resourceGroupName, string resourceName, Microsoft.Azure.Management.IotHub.Models.IotHubDescription iotHubDescription, string ifMatch = default);
static member BeginCreateOrUpdate : Microsoft.Azure.Management.IotHub.IIotHubResourceOperations * string * string * Microsoft.Azure.Management.IotHub.Models.IotHubDescription * string -> Microsoft.Azure.Management.IotHub.Models.IotHubDescription
<Extension()>
Public Function BeginCreateOrUpdate (operations As IIotHubResourceOperations, resourceGroupName As String, resourceName As String, iotHubDescription As IotHubDescription, Optional ifMatch As String = Nothing) As IotHubDescription

Paramètres

operations
IIotHubResourceOperations

Groupe d’opérations pour cette méthode d’extension.

resourceGroupName
String

Nom du groupe de ressources qui contient le hub IoT.

resourceName
String

Nom du hub IoT.

iotHubDescription
IotHubDescription

Métadonnées et métadonnées de sécurité IoT Hub.

ifMatch
String

ETag du IoT Hub. Ne spécifiez pas pour créer une nouvelle IoT Hub. Requis pour mettre à jour un IoT Hub existant.

Retours

Remarques

Créez ou mettez à jour les métadonnées d’un hub Iot. Le modèle habituel pour modifier une propriété consiste à récupérer les métadonnées et les métadonnées de sécurité du hub IoT, puis à les combiner avec les valeurs modifiées dans un nouveau corps pour mettre à jour le hub IoT. Si certaines propriétés sont manquantes dans le JSON, la mise à jour d’IoT Hub peut entraîner la restauration par défaut de ces valeurs, ce qui peut entraîner un comportement inattendu.

S’applique à