Aracılığıyla paylaş


PublicIPPrefixCollection.CreateOrUpdate Method

Definition

Creates or updates a static or dynamic public IP prefix.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPPrefixes/{publicIpPrefixName}
  • Operation Id: PublicIPPrefixes_CreateOrUpdate
  • Default Api Version: 2024-03-01
  • Resource: PublicIPPrefixResource
public virtual Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Network.PublicIPPrefixResource> CreateOrUpdate (Azure.WaitUntil waitUntil, string publicIPPrefixName, Azure.ResourceManager.Network.PublicIPPrefixData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.Network.PublicIPPrefixData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Network.PublicIPPrefixResource>
override this.CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.Network.PublicIPPrefixData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Network.PublicIPPrefixResource>
Public Overridable Function CreateOrUpdate (waitUntil As WaitUntil, publicIPPrefixName As String, data As PublicIPPrefixData, Optional cancellationToken As CancellationToken = Nothing) As ArmOperation(Of PublicIPPrefixResource)

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.

publicIPPrefixName
String

The name of the public IP prefix.

data
PublicIPPrefixData

Parameters supplied to the create or update public IP prefix operation.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

publicIPPrefixName or data is null.

Applies to