Compartir a través de


StorageTargets.CreateOrUpdateWithHttpMessagesAsync Método

Definición

Cree o actualice un destino de almacenamiento. Esta operación se permite en cualquier momento, pero si la memoria caché está inactiva o está en mal estado, la creación o modificación real del destino de almacenamiento puede retrasarse hasta que la caché vuelva a estar en buen estado.

public System.Threading.Tasks.Task<Microsoft.Rest.HttpOperationResponse<Microsoft.Azure.Management.StorageCache.Models.StorageTarget>> CreateOrUpdateWithHttpMessagesAsync (string resourceGroupName, string cacheName, string storageTargetName, Microsoft.Azure.Management.StorageCache.Models.StorageTarget storagetarget = default, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateWithHttpMessagesAsync : string * string * string * Microsoft.Azure.Management.StorageCache.Models.StorageTarget * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.HttpOperationResponse<Microsoft.Azure.Management.StorageCache.Models.StorageTarget>>
override this.CreateOrUpdateWithHttpMessagesAsync : string * string * string * Microsoft.Azure.Management.StorageCache.Models.StorageTarget * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.HttpOperationResponse<Microsoft.Azure.Management.StorageCache.Models.StorageTarget>>
Public Function CreateOrUpdateWithHttpMessagesAsync (resourceGroupName As String, cacheName As String, storageTargetName As String, Optional storagetarget As StorageTarget = Nothing, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of HttpOperationResponse(Of StorageTarget))

Parámetros

resourceGroupName
String

Grupo de recursos de destino.

cacheName
String

Nombre de caché. La longitud del nombre no debe ser mayor que 80 y chars debe ser de la clase char [-0-9a-zA-Z_].

storageTargetName
String

Nombre del destino de almacenamiento.

storagetarget
StorageTarget

Objeto que contiene la definición de un destino de almacenamiento.

customHeaders
Dictionary<String,List<String>>

Encabezados que se agregarán a la solicitud.

cancellationToken
CancellationToken

Token de cancelación.

Devoluciones

Implementaciones

Excepciones

Se produce cuando la operación devolvió un código de estado no válido

Se produce cuando no se puede deserializar la respuesta

Se produce cuando un parámetro obligatorio es NULL

Se produce cuando un parámetro obligatorio es NULL

Se aplica a