Udostępnij za pośrednictwem


RestorePointGroupCollection.CreateOrUpdateAsync Method

Definition

The operation to create or update the restore point collection. Please refer to https://aka.ms/RestorePoints for more details. When updating a restore point collection, only tags may be modified.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}
  • Operation Id: RestorePointCollections_CreateOrUpdate
  • Default Api Version: 2024-07-01
  • Resource: RestorePointGroupResource
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Compute.RestorePointGroupResource>> CreateOrUpdateAsync (Azure.WaitUntil waitUntil, string restorePointGroupName, Azure.ResourceManager.Compute.RestorePointGroupData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.Compute.RestorePointGroupData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Compute.RestorePointGroupResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.Compute.RestorePointGroupData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Compute.RestorePointGroupResource>>
Public Overridable Function CreateOrUpdateAsync (waitUntil As WaitUntil, restorePointGroupName As String, data As RestorePointGroupData, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of RestorePointGroupResource))

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.

restorePointGroupName
String

The name of the restore point collection.

data
RestorePointGroupData

Parameters supplied to the Create or Update restore point collection operation.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

restorePointGroupName or data is null.

Applies to