Language

ProtectionGroupCollection.CreateOrUpdate Method

Definition

Create a ProtectionGroup

  • Request Path. : /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Commvault.ContentStore/cloudAccounts/{cloudAccountName}/protectionGroups/{protectionGroupName}.
  • Operation Id. : ProtectionGroups_CreateOrupdate.
  • Default Api Version. : 2026-11-03.
public virtual Azure.ResourceManager.ArmOperation<Azure.ResourceManager.CommvaultContentStore.ProtectionGroupResource> CreateOrUpdate(Azure.WaitUntil waitUntil, string protectionGroupName, Azure.ResourceManager.CommvaultContentStore.ProtectionGroupData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.CommvaultContentStore.ProtectionGroupData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.CommvaultContentStore.ProtectionGroupResource>
override this.CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.CommvaultContentStore.ProtectionGroupData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.CommvaultContentStore.ProtectionGroupResource>
Public Overridable Function CreateOrUpdate (waitUntil As WaitUntil, protectionGroupName As String, data As ProtectionGroupData, Optional cancellationToken As CancellationToken = Nothing) As ArmOperation(Of ProtectionGroupResource)

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.

protectionGroupName
String

Name of the ProtectionGroup resource.

data
ProtectionGroupData

Resource create parameters.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

protectionGroupName or data is null.

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

Applies to