ChaosPrivateAccessCollection.CreateOrUpdate Method

Definition

Create or update a private access

  • Request Path. : /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Chaos/privateAccesses/{privateAccessName}.
  • Operation Id. : PrivateAccesses_CreateOrUpdate.
  • Default Api Version. : 2026-05-01-preview.
public virtual Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Chaos.ChaosPrivateAccessResource> CreateOrUpdate(Azure.WaitUntil waitUntil, string privateAccessName, Azure.ResourceManager.Chaos.ChaosPrivateAccessData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.Chaos.ChaosPrivateAccessData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Chaos.ChaosPrivateAccessResource>
override this.CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.Chaos.ChaosPrivateAccessData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Chaos.ChaosPrivateAccessResource>
Public Overridable Function CreateOrUpdate (waitUntil As WaitUntil, privateAccessName As String, data As ChaosPrivateAccessData, Optional cancellationToken As CancellationToken = Nothing) As ArmOperation(Of ChaosPrivateAccessResource)

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.

privateAccessName
String

The name of the private access resource that is being created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.

data
ChaosPrivateAccessData

private access resource to be created or updated.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

privateAccessName or data is null.

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

Applies to