IIotHubResourceOperations.BeginCreateOrUpdateWithHttpMessagesAsync メソッド

定義

IoT ハブのメタデータを作成または更新します。

public System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.Management.IotHub.Models.IotHubDescription>> BeginCreateOrUpdateWithHttpMessagesAsync (string resourceGroupName, string resourceName, Microsoft.Azure.Management.IotHub.Models.IotHubDescription iotHubDescription, string ifMatch = default, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member BeginCreateOrUpdateWithHttpMessagesAsync : string * string * Microsoft.Azure.Management.IotHub.Models.IotHubDescription * 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.IotHub.Models.IotHubDescription>>
Public Function BeginCreateOrUpdateWithHttpMessagesAsync (resourceGroupName As String, resourceName As String, iotHubDescription As IotHubDescription, Optional ifMatch As String = Nothing, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of AzureOperationResponse(Of IotHubDescription))

パラメーター

resourceGroupName
String

IoT ハブを含むリソース グループの名前。

resourceName
String

IoT ハブの名前。

iotHubDescription
IotHubDescription

IoT ハブのメタデータとセキュリティ メタデータ。

ifMatch
String

IoT Hubの ETag。 まったく新しいIoT Hubを作成するには、 を指定しないでください。 既存のIoT Hubを更新するために必要です。

customHeaders
Dictionary<String,List<String>>

要求に追加されるヘッダー。

cancellationToken
CancellationToken

キャンセル トークン。

戻り値

例外

操作が無効な状態コードを返したときにスローされます

応答を逆シリアル化できない場合にスローされます

必須パラメーターが null の場合にスローされます

注釈

IoT ハブのメタデータを作成または更新します。 プロパティを変更する通常のパターンは、IoT ハブのメタデータとセキュリティ メタデータを取得し、それらを新しい本文で変更された値と組み合わせて IoT ハブを更新することです。 JSON に特定のプロパティがない場合、IoT Hubを更新すると、これらの値が既定にフォールバックし、予期しない動作が発生する可能性があります。

適用対象