NotificationHubNamespaceCollection.CreateOrUpdateAsync Method

Definition

Creates / Updates a Notification Hub namespace. This operation is idempotent.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}
  • Operation Id: Namespaces_CreateOrUpdate
  • Default Api Version: 2023-10-01-preview
  • Resource: NotificationHubNamespaceResource
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.NotificationHubs.NotificationHubNamespaceResource>> CreateOrUpdateAsync (Azure.WaitUntil waitUntil, string namespaceName, Azure.ResourceManager.NotificationHubs.NotificationHubNamespaceData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.NotificationHubs.NotificationHubNamespaceData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.NotificationHubs.NotificationHubNamespaceResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.NotificationHubs.NotificationHubNamespaceData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.NotificationHubs.NotificationHubNamespaceResource>>
Public Overridable Function CreateOrUpdateAsync (waitUntil As WaitUntil, namespaceName As String, data As NotificationHubNamespaceData, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of NotificationHubNamespaceResource))

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.

namespaceName
String

Namespace name.

data
NotificationHubNamespaceData

Request content.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

namespaceName or data is null.

Applies to