DeviceSecurityGroupsOperationsExtensions.CreateOrUpdateAsync Method

Definition

Use this method to creates or updates the device security group on a specified IoT Hub resource.

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.Security.Models.DeviceSecurityGroup> CreateOrUpdateAsync(this Microsoft.Azure.Management.Security.IDeviceSecurityGroupsOperations operations, string resourceId, string deviceSecurityGroupName, Microsoft.Azure.Management.Security.Models.DeviceSecurityGroup deviceSecurityGroup, System.Threading.CancellationToken cancellationToken = default);
static member CreateOrUpdateAsync : Microsoft.Azure.Management.Security.IDeviceSecurityGroupsOperations * string * string * Microsoft.Azure.Management.Security.Models.DeviceSecurityGroup * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.Security.Models.DeviceSecurityGroup>
<Extension()>
Public Function CreateOrUpdateAsync (operations As IDeviceSecurityGroupsOperations, resourceId As String, deviceSecurityGroupName As String, deviceSecurityGroup As DeviceSecurityGroup, Optional cancellationToken As CancellationToken = Nothing) As Task(Of DeviceSecurityGroup)

Parameters

operations
IDeviceSecurityGroupsOperations

The operations group for this extension method.

resourceId
String

The identifier of the resource.

deviceSecurityGroupName
String

The name of the device security group. Note that the name of the device security group is case insensitive.

deviceSecurityGroup
DeviceSecurityGroup
cancellationToken
CancellationToken

The cancellation token.

Returns

Applies to