Share via


StorageTargets class

Class representing a StorageTargets.

Constructors

StorageTargets(StorageCacheManagementClientContext)

Create a StorageTargets.

Methods

beginCreateOrUpdate(string, string, string, Models.StorageTargetsBeginCreateOrUpdateOptionalParams)

Create or update a Storage Target. This operation is allowed at any time, but if the Cache is down or unhealthy, the actual creation/modification of the Storage Target may be delayed until the Cache is healthy again.

beginDeleteMethod(string, string, string, Models.StorageTargetsBeginDeleteMethodOptionalParams)

Removes a Storage Target from a Cache. This operation is allowed at any time, but if the Cache is down or unhealthy, the actual removal of the Storage Target may be delayed until the Cache is healthy again. Note that if the Cache has data to flush to the Storage Target, the data will be flushed before the Storage Target will be deleted.

beginDnsRefresh(string, string, string, msRest.RequestOptionsBase)

Tells a storage target to refresh its DNS information.

createOrUpdate(string, string, string, Models.StorageTargetsCreateOrUpdateOptionalParams)

Create or update a Storage Target. This operation is allowed at any time, but if the Cache is down or unhealthy, the actual creation/modification of the Storage Target may be delayed until the Cache is healthy again.

deleteMethod(string, string, string, Models.StorageTargetsDeleteMethodOptionalParams)

Removes a Storage Target from a Cache. This operation is allowed at any time, but if the Cache is down or unhealthy, the actual removal of the Storage Target may be delayed until the Cache is healthy again. Note that if the Cache has data to flush to the Storage Target, the data will be flushed before the Storage Target will be deleted.

dnsRefresh(string, string, string, msRest.RequestOptionsBase)

Tells a storage target to refresh its DNS information.

get(string, string, string, msRest.RequestOptionsBase)

Returns a Storage Target from a Cache.

get(string, string, string, RequestOptionsBase, ServiceCallback<StorageTarget>)
get(string, string, string, ServiceCallback<StorageTarget>)
listByCache(string, string, msRest.RequestOptionsBase)

Returns a list of Storage Targets for the specified Cache.

listByCache(string, string, RequestOptionsBase, ServiceCallback<StorageTargetsResult>)
listByCache(string, string, ServiceCallback<StorageTargetsResult>)
listByCacheNext(string, msRest.RequestOptionsBase)

Returns a list of Storage Targets for the specified Cache.

listByCacheNext(string, RequestOptionsBase, ServiceCallback<StorageTargetsResult>)
listByCacheNext(string, ServiceCallback<StorageTargetsResult>)

Constructor Details

StorageTargets(StorageCacheManagementClientContext)

Create a StorageTargets.

new StorageTargets(client: StorageCacheManagementClientContext)

Parameters

client
StorageCacheManagementClientContext

Reference to the service client.

Method Details

beginCreateOrUpdate(string, string, string, Models.StorageTargetsBeginCreateOrUpdateOptionalParams)

Create or update a Storage Target. This operation is allowed at any time, but if the Cache is down or unhealthy, the actual creation/modification of the Storage Target may be delayed until the Cache is healthy again.

function beginCreateOrUpdate(resourceGroupName: string, cacheName: string, storageTargetName: string, options?: Models.StorageTargetsBeginCreateOrUpdateOptionalParams)

Parameters

resourceGroupName

string

Target resource group.

cacheName

string

Name of Cache. Length of name must not be greater than 80 and chars must be from the [-0-9a-zA-Z_] char class.

storageTargetName

string

Name of Storage Target.

options
Models.StorageTargetsBeginCreateOrUpdateOptionalParams

Returns

Promise<LROPoller>

Promise<msRestAzure.LROPoller>

beginDeleteMethod(string, string, string, Models.StorageTargetsBeginDeleteMethodOptionalParams)

Removes a Storage Target from a Cache. This operation is allowed at any time, but if the Cache is down or unhealthy, the actual removal of the Storage Target may be delayed until the Cache is healthy again. Note that if the Cache has data to flush to the Storage Target, the data will be flushed before the Storage Target will be deleted.

function beginDeleteMethod(resourceGroupName: string, cacheName: string, storageTargetName: string, options?: Models.StorageTargetsBeginDeleteMethodOptionalParams)

Parameters

resourceGroupName

string

Target resource group.

cacheName

string

Name of Cache. Length of name must not be greater than 80 and chars must be from the [-0-9a-zA-Z_] char class.

storageTargetName

string

Name of Storage Target.

options
Models.StorageTargetsBeginDeleteMethodOptionalParams

Returns

Promise<LROPoller>

Promise<msRestAzure.LROPoller>

beginDnsRefresh(string, string, string, msRest.RequestOptionsBase)

Tells a storage target to refresh its DNS information.

function beginDnsRefresh(resourceGroupName: string, cacheName: string, storageTargetName: string, options?: msRest.RequestOptionsBase)

Parameters

resourceGroupName

string

Target resource group.

cacheName

string

Name of Cache. Length of name must not be greater than 80 and chars must be from the [-0-9a-zA-Z_] char class.

storageTargetName

string

Name of Storage Target.

options
msRest.RequestOptionsBase

Returns

Promise<LROPoller>

Promise<msRestAzure.LROPoller>

createOrUpdate(string, string, string, Models.StorageTargetsCreateOrUpdateOptionalParams)

Create or update a Storage Target. This operation is allowed at any time, but if the Cache is down or unhealthy, the actual creation/modification of the Storage Target may be delayed until the Cache is healthy again.

function createOrUpdate(resourceGroupName: string, cacheName: string, storageTargetName: string, options?: Models.StorageTargetsCreateOrUpdateOptionalParams)

Parameters

resourceGroupName

string

Target resource group.

cacheName

string

Name of Cache. Length of name must not be greater than 80 and chars must be from the [-0-9a-zA-Z_] char class.

storageTargetName

string

Name of Storage Target.

options
Models.StorageTargetsCreateOrUpdateOptionalParams

Returns

Promise<Models.StorageTargetsCreateOrUpdateResponse>

Promise<Models.StorageTargetsCreateOrUpdateResponse>

deleteMethod(string, string, string, Models.StorageTargetsDeleteMethodOptionalParams)

Removes a Storage Target from a Cache. This operation is allowed at any time, but if the Cache is down or unhealthy, the actual removal of the Storage Target may be delayed until the Cache is healthy again. Note that if the Cache has data to flush to the Storage Target, the data will be flushed before the Storage Target will be deleted.

function deleteMethod(resourceGroupName: string, cacheName: string, storageTargetName: string, options?: Models.StorageTargetsDeleteMethodOptionalParams)

Parameters

resourceGroupName

string

Target resource group.

cacheName

string

Name of Cache. Length of name must not be greater than 80 and chars must be from the [-0-9a-zA-Z_] char class.

storageTargetName

string

Name of Storage Target.

options
Models.StorageTargetsDeleteMethodOptionalParams

Returns

Promise<RestResponse>

Promise<msRest.RestResponse>

dnsRefresh(string, string, string, msRest.RequestOptionsBase)

Tells a storage target to refresh its DNS information.

function dnsRefresh(resourceGroupName: string, cacheName: string, storageTargetName: string, options?: msRest.RequestOptionsBase)

Parameters

resourceGroupName

string

Target resource group.

cacheName

string

Name of Cache. Length of name must not be greater than 80 and chars must be from the [-0-9a-zA-Z_] char class.

storageTargetName

string

Name of Storage Target.

options
msRest.RequestOptionsBase

Returns

Promise<RestResponse>

Promise<msRest.RestResponse>

get(string, string, string, msRest.RequestOptionsBase)

Returns a Storage Target from a Cache.

function get(resourceGroupName: string, cacheName: string, storageTargetName: string, options?: msRest.RequestOptionsBase)

Parameters

resourceGroupName

string

Target resource group.

cacheName

string

Name of Cache. Length of name must not be greater than 80 and chars must be from the [-0-9a-zA-Z_] char class.

storageTargetName

string

Name of Storage Target.

options
msRest.RequestOptionsBase

Returns

Promise<Models.StorageTargetsGetResponse>

Promise<Models.StorageTargetsGetResponse>

get(string, string, string, RequestOptionsBase, ServiceCallback<StorageTarget>)

function get(resourceGroupName: string, cacheName: string, storageTargetName: string, options: RequestOptionsBase, callback: ServiceCallback<StorageTarget>)

Parameters

resourceGroupName

string

Target resource group.

cacheName

string

Name of Cache. Length of name must not be greater than 80 and chars must be from the [-0-9a-zA-Z_] char class.

storageTargetName

string

Name of Storage Target.

options

RequestOptionsBase

The optional parameters

callback

ServiceCallback<StorageTarget>

The callback

get(string, string, string, ServiceCallback<StorageTarget>)

function get(resourceGroupName: string, cacheName: string, storageTargetName: string, callback: ServiceCallback<StorageTarget>)

Parameters

resourceGroupName

string

Target resource group.

cacheName

string

Name of Cache. Length of name must not be greater than 80 and chars must be from the [-0-9a-zA-Z_] char class.

storageTargetName

string

Name of Storage Target.

callback

ServiceCallback<StorageTarget>

The callback

listByCache(string, string, msRest.RequestOptionsBase)

Returns a list of Storage Targets for the specified Cache.

function listByCache(resourceGroupName: string, cacheName: string, options?: msRest.RequestOptionsBase)

Parameters

resourceGroupName

string

Target resource group.

cacheName

string

Name of Cache. Length of name must not be greater than 80 and chars must be from the [-0-9a-zA-Z_] char class.

options
msRest.RequestOptionsBase

Returns

Promise<Models.StorageTargetsListByCacheResponse>

Promise<Models.StorageTargetsListByCacheResponse>

listByCache(string, string, RequestOptionsBase, ServiceCallback<StorageTargetsResult>)

function listByCache(resourceGroupName: string, cacheName: string, options: RequestOptionsBase, callback: ServiceCallback<StorageTargetsResult>)

Parameters

resourceGroupName

string

Target resource group.

cacheName

string

Name of Cache. Length of name must not be greater than 80 and chars must be from the [-0-9a-zA-Z_] char class.

options

RequestOptionsBase

The optional parameters

callback

ServiceCallback<StorageTargetsResult>

The callback

listByCache(string, string, ServiceCallback<StorageTargetsResult>)

function listByCache(resourceGroupName: string, cacheName: string, callback: ServiceCallback<StorageTargetsResult>)

Parameters

resourceGroupName

string

Target resource group.

cacheName

string

Name of Cache. Length of name must not be greater than 80 and chars must be from the [-0-9a-zA-Z_] char class.

callback

ServiceCallback<StorageTargetsResult>

The callback

listByCacheNext(string, msRest.RequestOptionsBase)

Returns a list of Storage Targets for the specified Cache.

function listByCacheNext(nextPageLink: string, options?: msRest.RequestOptionsBase)

Parameters

nextPageLink

string

The NextLink from the previous successful call to List operation.

options
msRest.RequestOptionsBase

Returns

Promise<Models.StorageTargetsListByCacheNextResponse>

Promise<Models.StorageTargetsListByCacheNextResponse>

listByCacheNext(string, RequestOptionsBase, ServiceCallback<StorageTargetsResult>)

function listByCacheNext(nextPageLink: string, options: RequestOptionsBase, callback: ServiceCallback<StorageTargetsResult>)

Parameters

nextPageLink

string

The NextLink from the previous successful call to List operation.

options

RequestOptionsBase

The optional parameters

callback

ServiceCallback<StorageTargetsResult>

The callback

listByCacheNext(string, ServiceCallback<StorageTargetsResult>)

function listByCacheNext(nextPageLink: string, callback: ServiceCallback<StorageTargetsResult>)

Parameters

nextPageLink

string

The NextLink from the previous successful call to List operation.

callback

ServiceCallback<StorageTargetsResult>

The callback