Compartilhar via


SphereCatalogCollection.CreateOrUpdateAsync Method

Definition

Create a Catalog

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureSphere/catalogs/{catalogName}
  • Operation Id: Catalogs_CreateOrUpdate
  • Default Api Version: 2024-04-01
  • Resource: SphereCatalogResource
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Sphere.SphereCatalogResource>> CreateOrUpdateAsync (Azure.WaitUntil waitUntil, string catalogName, Azure.ResourceManager.Sphere.SphereCatalogData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.Sphere.SphereCatalogData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Sphere.SphereCatalogResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.Sphere.SphereCatalogData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Sphere.SphereCatalogResource>>
Public Overridable Function CreateOrUpdateAsync (waitUntil As WaitUntil, catalogName As String, data As SphereCatalogData, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of SphereCatalogResource))

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.

catalogName
String

Name of catalog.

data
SphereCatalogData

Resource create parameters.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

catalogName or data is null.

Applies to