ScopeMapCollection.CreateOrUpdateAsync Method

Definition

Creates a scope map for a container registry with the specified parameters.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/scopeMaps/{scopeMapName}
  • Operation Id: ScopeMaps_Create
  • Default Api Version: 2022-12-01
  • Resource: ScopeMapResource
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.ContainerRegistry.ScopeMapResource>> CreateOrUpdateAsync (Azure.WaitUntil waitUntil, string scopeMapName, Azure.ResourceManager.ContainerRegistry.ScopeMapData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.ContainerRegistry.ScopeMapData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.ContainerRegistry.ScopeMapResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.ContainerRegistry.ScopeMapData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.ContainerRegistry.ScopeMapResource>>
Public Overridable Function CreateOrUpdateAsync (waitUntil As WaitUntil, scopeMapName As String, data As ScopeMapData, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of ScopeMapResource))

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.

scopeMapName
String

The name of the scope map.

data
ScopeMapData

The parameters for creating a scope map.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

scopeMapName or data is null.

Applies to