Dela via


CacheOperationsExtensions.CreateOrUpdateAsync Method

Definition

Creates or updates an External Cache to be used in Api Management instance. https://docs.microsoft.com/en-us/azure/api-management/api-management-howto-cache-external

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.ApiManagement.Models.CacheContract> CreateOrUpdateAsync (this Microsoft.Azure.Management.ApiManagement.ICacheOperations operations, string resourceGroupName, string serviceName, string cacheId, Microsoft.Azure.Management.ApiManagement.Models.CacheContract parameters, string ifMatch = default, System.Threading.CancellationToken cancellationToken = default);
static member CreateOrUpdateAsync : Microsoft.Azure.Management.ApiManagement.ICacheOperations * string * string * string * Microsoft.Azure.Management.ApiManagement.Models.CacheContract * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.ApiManagement.Models.CacheContract>
<Extension()>
Public Function CreateOrUpdateAsync (operations As ICacheOperations, resourceGroupName As String, serviceName As String, cacheId As String, parameters As CacheContract, Optional ifMatch As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of CacheContract)

Parameters

operations
ICacheOperations

The operations group for this extension method.

resourceGroupName
String

The name of the resource group.

serviceName
String

The name of the API Management service.

cacheId
String

Identifier of the Cache entity. Cache identifier (should be either 'default' or valid Azure region identifier).

parameters
CacheContract

Create or Update parameters.

ifMatch
String

ETag of the Entity. Not required when creating an entity, but required when updating an entity.

cancellationToken
CancellationToken

The cancellation token.

Returns

Applies to