PeeringServiceCollection.CreateOrUpdate Method

Definition

Creates a new peering service or updates an existing peering with the specified name under the given subscription and resource group.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Peering/peeringServices/{peeringServiceName}
  • Operation Id: PeeringServices_CreateOrUpdate
public virtual Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Peering.PeeringServiceResource> CreateOrUpdate (Azure.WaitUntil waitUntil, string peeringServiceName, Azure.ResourceManager.Peering.PeeringServiceData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.Peering.PeeringServiceData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Peering.PeeringServiceResource>
override this.CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.Peering.PeeringServiceData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Peering.PeeringServiceResource>
Public Overridable Function CreateOrUpdate (waitUntil As WaitUntil, peeringServiceName As String, data As PeeringServiceData, Optional cancellationToken As CancellationToken = Nothing) As ArmOperation(Of PeeringServiceResource)

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.

peeringServiceName
String

The name of the peering service.

data
PeeringServiceData

The properties needed to create or update a peering service.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

peeringServiceName or data is null.

Applies to