SphereCatalogCollection.CreateOrUpdate 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 Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Sphere.SphereCatalogResource> CreateOrUpdate (Azure.WaitUntil waitUntil, string catalogName, Azure.ResourceManager.Sphere.SphereCatalogData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.Sphere.SphereCatalogData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Sphere.SphereCatalogResource>
override this.CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.Sphere.SphereCatalogData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Sphere.SphereCatalogResource>
Public Overridable Function CreateOrUpdate (waitUntil As WaitUntil, catalogName As String, data As SphereCatalogData, Optional cancellationToken As CancellationToken = Nothing) As 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