Поделиться через


NGroupCollection.CreateOrUpdateAsync Method

Definition

Create or update a NGroups resource.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/ngroups/{ngroupsName}
  • Operation Id: NGroups_CreateOrUpdate
  • Default Api Version: 2024-11-01-preview
  • Resource: NGroupResource
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.ContainerInstance.NGroupResource>> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string ngroupsName, Azure.ResourceManager.ContainerInstance.NGroupData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.ContainerInstance.NGroupData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.ContainerInstance.NGroupResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.ContainerInstance.NGroupData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.ContainerInstance.NGroupResource>>
Public Overridable Function CreateOrUpdateAsync (waitUntil As WaitUntil, ngroupsName As String, data As NGroupData, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of NGroupResource))

Parameters

waitUntil
WaitUntil

Completed if the method should wait to return until the long-running operation has completed on the service; Started if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.

ngroupsName
String

The NGroups name.

data
NGroupData

The NGroup object.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

ngroupsName is an empty string, and was expected to be non-empty.

ngroupsName or data is null.

Applies to