Skip to main content

storage_target

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

Overview

Namestorage_target
TypeResource
Idazure.storage_cache.storage_target

Fields

The following fields are returned by SELECT queries:

SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
flushexecresource_group_name, cache_name, storage_target_name, subscription_idTells the cache to write all dirty data to the Storage Target's backend storage. Client requests to this storage target's namespace will return errors until the flush operation completes.
suspendexecresource_group_name, cache_name, storage_target_name, subscription_idSuspends client access to a storage target.
resumeexecresource_group_name, cache_name, storage_target_name, subscription_idResumes client access to a previously suspended storage target.
invalidateexecresource_group_name, cache_name, storage_target_name, subscription_idInvalidate all cached data for a storage target. Cached files are discarded and fetched from the back end on the next request.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
cache_namestringName of cache. Length of name must not be greater than 80 and chars must be from the [-0-9a-zA-Z_] char class. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
storage_target_namestringName of Storage Target. Required.
subscription_idstring

Lifecycle Methods

Tells the cache to write all dirty data to the Storage Target's backend storage. Client requests to this storage target's namespace will return errors until the flush operation completes.

EXEC azure.storage_cache.storage_target.flush 
@resource_group_name='{{ resource_group_name }}' --required,
@cache_name='{{ cache_name }}' --required,
@storage_target_name='{{ storage_target_name }}' --required,
@subscription_id='{{ subscription_id }}' --required
;