Share via


CacheOperationsExtensions.CreateOrUpdate 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 Microsoft.Azure.Management.ApiManagement.Models.CacheContract CreateOrUpdate (this Microsoft.Azure.Management.ApiManagement.ICacheOperations operations, string resourceGroupName, string serviceName, string cacheId, Microsoft.Azure.Management.ApiManagement.Models.CacheContract parameters, string ifMatch = default);
static member CreateOrUpdate : Microsoft.Azure.Management.ApiManagement.ICacheOperations * string * string * string * Microsoft.Azure.Management.ApiManagement.Models.CacheContract * string -> Microsoft.Azure.Management.ApiManagement.Models.CacheContract
<Extension()>
Public Function CreateOrUpdate (operations As ICacheOperations, resourceGroupName As String, serviceName As String, cacheId As String, parameters As CacheContract, Optional ifMatch As String = Nothing) As 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.

Returns

Applies to