Skip to main content

caches

Creates, updates, deletes, gets or lists a caches resource.

Overview

Namecaches
TypeResource
Idazure.storage_cache.caches

Fields

NameDatatypeDescription
idstringA fully qualified URL.
namestringSchema for the name of resources served by this provider. Note that objects will contain an odata @id annotation as appropriate. This will contain the complete resource id of the object. These names are case-preserving, but not case sensitive.
identityobjectCache identity properties.
locationstringRegion name string.
propertiesobjectProperties of the cache.
skuobjectSKU for the cache.
systemDataobjectMetadata pertaining to creation and last modification of the resource.
tagsobjectResource tags.
typestringType of the cache; Microsoft.StorageCache/Cache

Methods

NameAccessible byRequired ParamsDescription
getSELECTcacheName, resourceGroupName, subscriptionIdReturns a cache.
listSELECTsubscriptionIdReturns all caches the user has access to under a subscription.
list_by_resource_groupSELECTresourceGroupName, subscriptionIdReturns all caches the user has access to under a resource group.
create_or_updateINSERTcacheName, resourceGroupName, subscriptionIdCreate or update a cache.
deleteDELETEcacheName, resourceGroupName, subscriptionIdSchedules a cache for deletion.
updateUPDATEcacheName, resourceGroupName, subscriptionIdUpdate a cache instance.
debug_infoEXECcacheName, resourceGroupName, subscriptionIdTells a cache to write generate debug info for support to process.
flushEXECcacheName, resourceGroupName, subscriptionIdTells a cache to write all dirty data to the Storage Target(s). During the flush, clients will see errors returned until the flush is complete.
pause_priming_jobEXECcacheName, resourceGroupName, subscriptionId, data__primingJobIdSchedule a priming job to be paused.
resume_priming_jobEXECcacheName, resourceGroupName, subscriptionId, data__primingJobIdResumes a paused priming job.
space_allocationEXECcacheName, resourceGroupName, subscriptionIdUpdate cache space allocation.
startEXECcacheName, resourceGroupName, subscriptionIdTells a Stopped state cache to transition to Active state.
start_priming_jobEXECcacheName, resourceGroupName, subscriptionId, data__primingJobName, data__primingManifestUrlCreate a priming job. This operation is only allowed when the cache is healthy.
stopEXECcacheName, resourceGroupName, subscriptionIdTells an Active cache to transition to Stopped state.
stop_priming_jobEXECcacheName, resourceGroupName, subscriptionId, data__primingJobIdSchedule a priming job for deletion.
upgrade_firmwareEXECcacheName, resourceGroupName, subscriptionIdUpgrade a cache's firmware if a new version is available. Otherwise, this operation has no effect.

SELECT examples

Returns all caches the user has access to under a subscription.

SELECT
id,
name,
identity,
location,
properties,
sku,
systemData,
tags,
type
FROM azure.storage_cache.caches
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

Use the following StackQL query and manifest file to create a new caches resource.

/*+ create */
INSERT INTO azure.storage_cache.caches (
cacheName,
resourceGroupName,
subscriptionId,
tags,
location,
identity,
properties,
sku
)
SELECT
'{{ cacheName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ tags }}',
'{{ location }}',
'{{ identity }}',
'{{ properties }}',
'{{ sku }}'
;

UPDATE example

Updates a caches resource.

/*+ update */
UPDATE azure.storage_cache.caches
SET
tags = '{{ tags }}',
location = '{{ location }}',
identity = '{{ identity }}',
properties = '{{ properties }}',
sku = '{{ sku }}'
WHERE
cacheName = '{{ cacheName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified caches resource.

/*+ delete */
DELETE FROM azure.storage_cache.caches
WHERE cacheName = '{{ cacheName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';